예제 #1
0
 private CoreTestSettings createSettingsAndWiremock() {
   CoreTestSettings settings1 = new CoreTestSettings();
   String serverAddress = "http://127.0.0.1:8080";
   settings1.setServerAddress(serverAddress);
   settings1.setUsername("test");
   settings1.setPassword("1234");
   wiremock(settings1.getUsername(), settings1.getPassword(), "35", serverAddress);
   return settings1;
 }
예제 #2
0
 @Before
 public void setup() throws IOException {
   settings = new CoreTestSettings();
   settings.setUsername("Bossman");
   settings.setPassword("Samu");
   cache = Paths.get("src", "test", "resources", "downloadtest.cache").toFile();
   cache.createNewFile();
   parser = Mockito.mock(TmcJsonParser.class);
   this.core = new TmcCore();
 }