FactModelGuvnorUploader { static boolean isValid(String[] args) { if (args.length != 3) { LOGGER.error("ERROR: FactModelGuvnorUploader needs 3 arguments: username, password, factmodel-put-url"); return false; } return true; }  static void main(String[] args);  }
@Test public void testIsValid() { String[] args0 = {}; String[] args1 = { "a" }; String[] args2 = { "a", "a" }; String[] args3 = { "a", "a", "a" }; String[] args4 = { "a", "a", "a", "a" }; String[] args5 = { "a", "a", "a", "a", "a" }; boolean isValid0 = FactModelGuvnorUploader.isValid(args0); boolean isValid1 = FactModelGuvnorUploader.isValid(args1); boolean isValid2 = FactModelGuvnorUploader.isValid(args2); boolean isValid3 = FactModelGuvnorUploader.isValid(args3); boolean isValid4 = FactModelGuvnorUploader.isValid(args4); boolean isValid5 = FactModelGuvnorUploader.isValid(args5); assertFalse(isValid0); assertFalse(isValid1); assertFalse(isValid2); assertTrue(isValid3); assertFalse(isValid4); assertFalse(isValid5); }