@Test public void shouldDetectMissingJARs() throws IOException { main.parse(new String[] {}); ArrayList<String> dependantClasses = new ArrayList<String>() { { add("this.shouldn't.Exist"); } }; ReflectionUtils.setField(main, "manifestName", "MANIFEST-TEST.MF"); ReflectionUtils.setField(main, "dependantClasses", dependantClasses); try { main.initialize(); fail("Should have thrwn exception"); } catch (IllegalStateException e) { String message = e.getMessage(); assertThat( message, containsString("Ensure these JARs are in the same directory as JSCover.jar:")); assertThat(message, containsString("js.jar")); } }
/** Create the application. */ public Main() { initialize(); }
public void run() { initialize(); Login.initiate(); new TrackerGUI().main(null); }