@Test public void test2() throws Throwable { // Undeclared exception! try { ServerFactory.createServer((Properties) null); fail("Expecting exception: NullPointerException"); } catch (NullPointerException e) { /* * properties cannot be null */ } }
@Test public void test1() throws Throwable { Properties properties0 = new Properties(); // Undeclared exception! try { ServerFactory.createServer(properties0); fail("Expecting exception: IllegalArgumentException"); } catch (IllegalArgumentException e) { /* * server.type property missing */ } }
@Test public void test3() throws Throwable { Properties properties0 = new Properties(); properties0.put((Object) "server.type", (Object) "server.type"); // Undeclared exception! try { ServerFactory.createServer(properties0); fail("Expecting exception: IllegalArgumentException"); } catch (IllegalArgumentException e) { /* * server.type is not supported server type. Supported types are: []. */ } }