* All JUnits are designed to run in the local development environment
* where they have write privileges and can execute time-sensitive
* tasks.
+ *
+ * If any have been ignored (@Ignore) they will not run at the same time
+ * as others. You should run them as JUnits by themselves.
*/
public class DbAuditCompareEntriesTest {
* Tests that a comparison between hashsets is successful if
* the entries match
*/
- @Ignore
+ //@Ignore
@Test
public void testSuccessfulComparison() throws Exception {
logger.info("testSuccessfulComparison: Entering");
* Tests that an error is detected if an entry in one hashset doesn't
* match the other
*/
- @Ignore
+ //@Ignore
@Test
public void testComparisonError() throws Exception {
logger.info("testComparisonError: Entering");
* Tests that a mismatch/miss entry is detected if there are missing entries in
* one or both of the hashsets
*/
- @Ignore
+ //@Ignore
@Test
public void testCompareMissingEntries() throws Exception {
logger.info("testCompareMissingEntries: Entering");
/*
* Tests that comparison algorithm works for each entity in the hashsets
*/
- @Ignore
+ //@Ignore
@Test
public void testCompareAllHashEntities() throws Exception {
logger.info("testCompareAllHashEntities: Entering");
/*
* Tests that differences in embedded classes are still caught
*/
- @Ignore
+ //@Ignore
@Test
public void testEmbeddedClass() throws Exception {
logger.info("testEmbeddedClasses: Entering");
* All JUnits are designed to run in the local development environment
* where they have write privileges and can execute time-sensitive
* tasks.
+ *
+ * If any have been ignored (@Ignore) they will not run at the same time
+ * as others. You should run them as JUnits by themselves.
*/
public class DbDAOTest {
private static String persistenceUnit;
properties.put(IntegrityAuditProperties.SITE_NAME, "SiteA");
properties.put(IntegrityAuditProperties.NODE_TYPE, "pdp_xacml");
- persistenceUnit = "integrityAuditPU";
+ //persistenceUnit = "integrityAuditPU";
+ persistenceUnit = "testPU";
resourceName = "pdp0";
}
}
/* Tests registering a new IntegrityAuditEntity object in the DB */
- @Ignore
+ //@Ignore
@Test
public void testNewRegistration() {
try {
}
/* Tests updating an IntegrityAuditEntity if it has already been registered */
- @Ignore
+ //@Ignore
@Test
public void testUpdateRegistration() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests obtaining all Integrity Audit Entities from a table */
- @Ignore
+ //@Ignore
@Test
public void testGetIntegrityAuditEntities() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests retrieving a DbDAO instance's IntegrityAuditEntity */
- @Ignore
+ //@Ignore
@Test
public void testGetMyIntegrityAuditEntity() {
try {
d = new DbDAO(resourceName, persistenceUnit, properties);
IntegrityAuditEntity iae = d.getMyIntegrityAuditEntity();
- assertEquals("integrityAuditPU", iae.getPersistenceUnit());
+ //assertEquals("integrityAuditPU", iae.getPersistenceUnit());
+ assertEquals("testPU", iae.getPersistenceUnit());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
/* Tests obtaining an IntegrityAuditEntity by ID */
- @Ignore
+ //@Ignore
@Test
public void testGetIntegrityAuditEntity() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests setting an IntegrityAuditEntity as the designated node */
- @Ignore
+ //@Ignore
@Test
public void testSetDesignated() {
try {
}
/* Tests that the lastUpdated column in the database is updated properly */
- @Ignore
+ //@Ignore
@Test
public void testSetLastUpdated() {
try {
}
/* Tests that all the entries from a class can be retrieved */
- @Ignore
+ //@Ignore
@Test
public void testGetAllMyEntriesString() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests retrieving all entities in a Persistence Unit using the class name and a hashset of IDs */
- @Ignore
+ //@Ignore
@Test
public void testGetAllMyEntriesStringHashSet() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests retrieving all entities in a Persistence Unit using the persistence unit, properties, and class name */
- @Ignore
+ //@Ignore
@Test
public void testGetAllEntriesStringPropertiesString() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests retrieving all entities in a Persistence Unit using the persistence unit, properties, class name, and a hashset of IDs */
- @Ignore
+ //@Ignore
@Test
public void testGetAllEntriesStringPropertiesStringHashSet() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);
}
/* Tests getting all the entries from a class based on persistenceUnit, properties, and className */
- @Ignore
+ //@Ignore
@Test
public void testGetAllEntries() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit, properties);