コード例 #1
0
 private void assertResponderType(Class<?> expectedClass) throws Exception {
   Responder responder = factory.makeResponder(request);
   assertEquals(expectedClass, responder.getClass());
 }
コード例 #2
0
 private void checkResponderKey(String queryString, String key) {
   MockRequest request = new MockRequest();
   request.setQueryString(queryString);
   assertEquals(key, factory.getResponderKey(request));
 }
コード例 #3
0
 @Test
 public void testAddingResponders() throws Exception {
   factory.addResponder("custom", WikiPageResponder.class);
   assertResponderTypeMatchesInput("custom", WikiPageResponder.class);
 }