diff options
Diffstat (limited to 'pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java')
-rw-r--r-- | pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java b/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java index 7b4681e5a..2f022cb9a 100644 --- a/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java +++ b/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java @@ -40,7 +40,7 @@ public class DBRegistryTest extends CMSBaseTestCase { extAttrMapper = new DBDynAttrMapperStub(); try { registry.registerObjectClass(requestRecordStub.getClass().getName(), - new String[] {"ocvalue"} ); + new String[] { "ocvalue" }); registry.registerAttribute(IRequestRecord.ATTR_EXT_DATA, extAttrMapper); registry.registerAttribute(IRequestRecord.ATTR_SOURCE_ID, new StringMapper("sourceIdOut")); @@ -64,7 +64,7 @@ public class DBRegistryTest extends CMSBaseTestCase { assertTrue(extAttrMapper.mapObjectCalled); } - public void testGetLDAPAttributesForExtData() throws EBaseException { + public void testGetLDAPAttributesForExtData() throws EBaseException { String inAttrs[] = new String[] { "extData-foo", "extData-foo12", @@ -79,9 +79,10 @@ public class DBRegistryTest extends CMSBaseTestCase { assertTrue(TestHelper.contains(outAttrs, "sourceIdOut")); try { - registry.getLDAPAttributes(new String[] {"badattr"}); + registry.getLDAPAttributes(new String[] { "badattr" }); fail("Should not be able to map badattr"); - } catch (EBaseException e) { /* good */ } + } catch (EBaseException e) { /* good */ + } } public void testCreateLDAPAttributeSet() throws EBaseException { @@ -109,7 +110,6 @@ public class DBRegistryTest extends CMSBaseTestCase { assertTrue(extAttrMapper.mapLDAPAttrsCalled); } - class DBSubsystemStub extends DBSubsystemDefaultStub { DBRegistry registry; @@ -118,7 +118,6 @@ public class DBRegistryTest extends CMSBaseTestCase { } } - class DBDynAttrMapperStub extends DBDynAttrMapperDefaultStub { boolean mapObjectCalled = false; Object mapObjectCalledWithObject = null; @@ -149,7 +148,7 @@ public class DBRegistryTest extends CMSBaseTestCase { * DBRegistry.createObject() calls Class.newInstance() to create * this stub. This fails if the class is nested. */ - class RequestRecordStub extends RequestRecordDefaultStub { +class RequestRecordStub extends RequestRecordDefaultStub { /** * |