@Test public void testAllCallbackNamesUnique() throws Exception { CallbackDescriptor[] callbacks = objEntity.getCallbackMap().getCallbacks(); for (int i = 0; i < callbacks.length; i++) { callbacks[i].addCallbackMethod("callback1"); callbacks[i].addCallbackMethod("callback2"); callbacks[i].addCallbackMethod("callback3"); } entityUtils = new EntityUtils(dataMap, objEntity, "TestBaseClass", "TestSuperClass", "TestSubClass"); boolean hasNoDuplicates = true; Set<String> callbackNames = new LinkedHashSet<String>(); for (String cbName : entityUtils.getCallbackNames()) { if (!callbackNames.add(cbName)) { hasNoDuplicates = false; } } assertTrue("Contains duplicate callback names.", hasNoDuplicates); }
public Collection<String> getCallbackNames() { return callbackNames; }
EntityUtils { public Collection<String> getCallbackNames() { return callbackNames; } }
EntityUtils { public Collection<String> getCallbackNames() { return callbackNames; } EntityUtils(DataMap dataMap, ObjEntity objEntity, String fqnBaseClass, String fqnSuperClass,
            String fqnSubClass);   EntityUtils(DataMap dataMap, ObjEntity objEntity, String baseClassName, String basePackageName,
            String superClassName, String superPackageName, String subClassName, String subPackageName); }
EntityUtils { public Collection<String> getCallbackNames() { return callbackNames; } EntityUtils(DataMap dataMap, ObjEntity objEntity, String fqnBaseClass, String fqnSuperClass,
            String fqnSubClass);   EntityUtils(DataMap dataMap, ObjEntity objEntity, String baseClassName, String basePackageName,
            String superClassName, String superPackageName, String subClassName, String subPackageName); DataMap getPrimaryDataMap(); MappingNamespace getEntityResolver(); boolean isAbstract(); boolean isAbstract(ObjEntity anObjEntity); boolean hasToManyRelationships(); boolean hasToManyRelationships(ObjEntity anObjEntity); boolean hasToManyDeclaredRelationships(); boolean hasToManyDeclaredRelationships(ObjEntity anObjEntity); boolean hasToOneRelationships(); boolean hasToOneRelationships(ObjEntity anObjEntity); boolean hasToOneDeclaredRelationships(); boolean hasToOneDeclaredRelationships(ObjEntity anObjEntity); String getMapKeyType(final ObjRelationship relationship); boolean declaresDbAttribute(DbAttribute pkAttribute); Collection<String> getCallbackNames(); }
EntityUtils { public Collection<String> getCallbackNames() { return callbackNames; } EntityUtils(DataMap dataMap, ObjEntity objEntity, String fqnBaseClass, String fqnSuperClass,
            String fqnSubClass);   EntityUtils(DataMap dataMap, ObjEntity objEntity, String baseClassName, String basePackageName,
            String superClassName, String superPackageName, String subClassName, String subPackageName); DataMap getPrimaryDataMap(); MappingNamespace getEntityResolver(); boolean isAbstract(); boolean isAbstract(ObjEntity anObjEntity); boolean hasToManyRelationships(); boolean hasToManyRelationships(ObjEntity anObjEntity); boolean hasToManyDeclaredRelationships(); boolean hasToManyDeclaredRelationships(ObjEntity anObjEntity); boolean hasToOneRelationships(); boolean hasToOneRelationships(ObjEntity anObjEntity); boolean hasToOneDeclaredRelationships(); boolean hasToOneDeclaredRelationships(ObjEntity anObjEntity); String getMapKeyType(final ObjRelationship relationship); boolean declaresDbAttribute(DbAttribute pkAttribute); Collection<String> getCallbackNames();  }