public OsCacheFacadeTests(String name) {
super(name);
}
public void testGetCacheModelEditor() {
PropertyEditor editor = osCacheFacade.getCachingModelEditor();
assertNotNull(editor);
assertEquals(ReflectionCacheModelEditor.class, editor.getClass());
ReflectionCacheModelEditor modelEditor = (ReflectionCacheModelEditor) editor;
assertEquals(OsCacheCachingModel.class, modelEditor.getCacheModelClass());
Map cacheModelPropertyEditors = modelEditor.getCacheModelPropertyEditors();
assertNotNull(cacheModelPropertyEditors);
assertEquals(1, cacheModelPropertyEditors.size());
PropertyEditor refreshPeriodEditor = (PropertyEditor) cacheModelPropertyEditors
.get("refreshPeriod");
assertNotNull(refreshPeriodEditor);
assertEquals(RefreshPeriodEditor.class, refreshPeriodEditor.getClass());
}