Package net.raymanoz.io

Examples of net.raymanoz.io.File


 
  private final Configuration config = mock(Configuration.class);
  private ScriptCreatorAssemblerImpl assembler= new ScriptCreatorAssemblerImpl(config);

  private File mockFile(String name, DirType dirType, Long dbVersion){
    File result = mock(File.class);
    when(result.getName()).thenReturn(name);
    when(result.getDBVersion()).thenReturn(dbVersion);
    return result;
  }
View Full Code Here


  }

  @Test
  public void testNewScriptList() {
    String fileName = "1.sql";
    File mockFile = mockFile(fileName, DirType.SCRIPT, 1L);
    assertNotNull("Assembler should return a script list", assembler.newScriptList(new File[]{mockFile}, 1, 1));
  }
View Full Code Here

  }
 
  @Test
  public void testNewFile() {
    String fileName = ".";
    File mockFile = mockFile(fileName, DirType.SCRIPT, 1L);
    assertNotNull("Assembler should return a not null File", assembler.newFile(mockFile, "asdf"));
  }
View Full Code Here

    when(mockProcessBuilder.start()).thenReturn(mockProcess);
    when(mockProcessBuilder.start()).thenReturn(mockProcess);
  }
 
  private File mockFile(String fileName) {
    final File mockFile = mock(File.class);
    when(mockFile.getName()).thenReturn(fileName);
    return mockFile;
  }
View Full Code Here

TOP

Related Classes of net.raymanoz.io.File

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.