mdv.handleIgnorableMapping(null, null, "AppEngine.MetaData.TestMsg1", "warning only msg");
}
public void testIgnorableMapping_WarningConfig() {
setIgnorableMetaDataBehavior(MetaDataValidator.IgnorableMetaDataBehavior.WARN.name());
NucleusContext nucContext = ((JDOPersistenceManagerFactory)pmf).getNucleusContext();
MetaDataManager mdm = nucContext.getMetaDataManager();
final String[] loggedMsg = {null};
AbstractClassMetaData acmd =
mdm.getMetaDataForClass(Flight.class, nucContext.getClassLoaderResolver(getClass().getClassLoader()));
MetaDataValidator mdv = new MetaDataValidator((DatastoreManager) nucContext.getStoreManager(), mdm, null) {
@Override
void warn(String msg) {
loggedMsg[0] = msg;
}
};