コード例 #1
0
 /** Attempt to set the new request properties on the connector. */
 @Test
 public void testSetRequestProperties() {
   try {
     connector.setRequestProperties(requestProperties);
   } catch (ConnectorException e) {
     fail(e.getMessage());
   }
 }
コード例 #2
0
 /** Attempt to get the resource from the connector with the second set of request properties. */
 @Test
 public void testGetResource2() throws ConnectorException {
   try {
     resource = connector.getResource();
     assertNotNull("A problem occurred retrieving the second resource", resource);
   } catch (ConnectorException e) {
     fail(e.getMessage());
   }
 }