@Test public void testGetService() throws Exception { when( baseCartePlugin.getContextPath() ) .thenReturn( "/Path" ); assertThat( baseCartePlugin.getService().startsWith( "/Path" ), is( true ) ); }
public String getService() { return getContextPath() + " (" + toString() + ")"; }
BaseCartePlugin extends BaseHttpServlet implements CartePluginInterface, CarteRequestHandler { public String getService() { return getContextPath() + " (" + toString() + ")"; } }
BaseCartePlugin extends BaseHttpServlet implements CartePluginInterface, CarteRequestHandler { public String getService() { return getContextPath() + " (" + toString() + ")"; }  }
BaseCartePlugin extends BaseHttpServlet implements CartePluginInterface, CarteRequestHandler { public String getService() { return getContextPath() + " (" + toString() + ")"; }  @Deprecated @Override void doGet( HttpServletRequest req, final HttpServletResponse resp ); @Override abstract void handleRequest( CarteRequest request ); @Override abstract String getContextPath(); String getService(); String toString(); }
BaseCartePlugin extends BaseHttpServlet implements CartePluginInterface, CarteRequestHandler { public String getService() { return getContextPath() + " (" + toString() + ")"; }  @Deprecated @Override void doGet( HttpServletRequest req, final HttpServletResponse resp ); @Override abstract void handleRequest( CarteRequest request ); @Override abstract String getContextPath(); String getService(); String toString();  }