@Test public void testStartServiceThrowsNullPointerException() throws Throwable { try { new Shutdown().startService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"org.jpos.q2.Q2.shutdown()\" because the return value of \"org.jpos.q2.qbean.Shutdown.getServer()\" is null", ex.getMessage(), "ex.getMessage()"); } } }
public void startService() { getServer().shutdown (); }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); }  }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); }  void startService(); }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); }  void startService();  }