コード例 #1
0
 /** @throws java.lang.Exception */
 @BeforeClass
 public static void setUpBeforeClass() throws Exception {
   if (DBConnection.probeTestConnection()) {
     log.info("Testing with live connection");
     testConnection = DBConnection.getTestConnection();
   } else {
     log.info("Testing with mock connection");
     testConnection = DBConnection.getMockConnection();
   }
 }
コード例 #2
0
 @BeforeClass
 public static void setUpBeforeClass() throws Exception {
   if (DBConnection.probeTestConnection()) {
     log.info("Testing with live connection");
     testConnection = DBConnection.getTestConnection();
   } else {
     log.info("Testing with mock connection");
     testConnection = DBConnection.getMockConnection();
   }
   partOfBean = testConnection.getPropertyFromSourceId(partOfIRI);
   partOfPropertyTerm = new PropertyTerm(partOfBean);
 }