Exemplo n.º 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();
   }
 }
Exemplo n.º 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);
 }