From 8d21db36015f8560d9cd2bcee9817f2c0a07a386 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 24 Mar 2015 14:11:47 +0000
Subject: [PATCH] Autorefactored javadocs

---
 opendj-server-legacy/src/test/java/org/opends/server/admin/server/DefaultBehaviorTest.java |   48 ++++++++++++++++++++----------------------------
 1 files changed, 20 insertions(+), 28 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/admin/server/DefaultBehaviorTest.java b/opendj-server-legacy/src/test/java/org/opends/server/admin/server/DefaultBehaviorTest.java
index ef6d7aa..3165bf4 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/admin/server/DefaultBehaviorTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/admin/server/DefaultBehaviorTest.java
@@ -59,7 +59,7 @@
   private static class AddListener implements
       ConfigurationAddListener<TestChildCfg> {
 
-    // The child configuration that was added.
+    /** The child configuration that was added. */
     private TestChildCfg child;
 
 
@@ -73,9 +73,7 @@
 
 
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     public ConfigChangeResult applyConfigurationAdd(TestChildCfg configuration) {
       return new ConfigChangeResult();
     }
@@ -98,9 +96,7 @@
 
 
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     public boolean isConfigurationAddAcceptable(TestChildCfg configuration,
         List<LocalizableMessage> unacceptableReasons) {
       child = configuration;
@@ -117,7 +113,7 @@
   private static class ChangeListener implements
       ConfigurationChangeListener<TestChildCfg> {
 
-    // The child configuration that was changed.
+    /** The child configuration that was changed. */
     private TestChildCfg child;
 
 
@@ -131,9 +127,7 @@
 
 
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     public ConfigChangeResult applyConfigurationChange(TestChildCfg configuration) {
       return new ConfigChangeResult();
     }
@@ -156,9 +150,7 @@
 
 
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     public boolean isConfigurationChangeAcceptable(TestChildCfg configuration,
         List<LocalizableMessage> unacceptableReasons) {
       child = configuration;
@@ -167,7 +159,7 @@
 
   }
 
-  // Test child 1 LDIF.
+  /** Test child 1 LDIF. */
   private static final String[] TEST_CHILD_1 = new String[] {
       "dn: cn=test child 1,cn=test children,cn=test parent 1,cn=test parents,cn=config",
       "objectclass: top",
@@ -179,7 +171,7 @@
       "ds-cfg-conflict-behavior: virtual-overrides-real"
   };
 
-  // Test child 2 LDIF.
+  /** Test child 2 LDIF. */
   private static final String[] TEST_CHILD_2 = new String[] {
       "dn: cn=test child 2,cn=test children,cn=test parent 1,cn=test parents,cn=config",
       "objectclass: top",
@@ -193,7 +185,7 @@
       "ds-cfg-base-dn: dc=default value c2v2,dc=com"
   };
 
-  // Test child 3 LDIF.
+  /** Test child 3 LDIF. */
   private static final String[] TEST_CHILD_3 = new String[] {
       "dn: cn=test child 3,cn=test children,cn=test parent 1,cn=test parents,cn=config",
       "objectclass: top",
@@ -209,7 +201,7 @@
       "ds-cfg-group-dn: dc=default value c3v4,dc=com"
   };
 
-  // Test child 4 LDIF.
+  /** Test child 4 LDIF. */
   private static final String[] TEST_CHILD_4 = new String[] {
       "dn: cn=test child 4,cn=test children,cn=test parent 2,cn=test parents,cn=config",
       "objectclass: top",
@@ -221,7 +213,7 @@
       "ds-cfg-conflict-behavior: virtual-overrides-real"
   };
 
-  // Test LDIF.
+  /** Test LDIF. */
   private static final String[] TEST_LDIF = new String[] {
       // Base entries.
       "dn: cn=test parents,cn=config",
@@ -266,7 +258,7 @@
       ""
   };
 
-  // JNDI LDAP context.
+  /** JNDI LDAP context. */
   private JNDIDirContextAdaptor adaptor;
 
 
@@ -748,7 +740,7 @@
 
 
 
-  // Assert that the values of child 1 are correct.
+  /** Assert that the values of child 1 are correct. */
   private void assertChild1(TestChildCfg child) {
     Assert.assertEquals(child.getMandatoryClassProperty(),
         "org.opends.server.extensions.UserDefinedVirtualAttributeProvider");
@@ -762,7 +754,7 @@
 
 
 
-  // Assert that the values of child 2 are correct.
+  /** Assert that the values of child 2 are correct. */
   private void assertChild2(TestChildCfg child) {
     Assert.assertEquals(child.getMandatoryClassProperty(),
         "org.opends.server.extensions.UserDefinedVirtualAttributeProvider");
@@ -776,7 +768,7 @@
 
 
 
-  // Assert that the values of child 3 are correct.
+  /** Assert that the values of child 3 are correct. */
   private void assertChild3(TestChildCfg child) {
     Assert.assertEquals(child.getMandatoryClassProperty(),
         "org.opends.server.extensions.UserDefinedVirtualAttributeProvider");
@@ -790,7 +782,7 @@
 
 
 
-  // Assert that the values of child 4 are correct.
+  /** Assert that the values of child 4 are correct. */
   private void assertChild4(TestChildCfg child) {
     Assert.assertEquals(child.getMandatoryClassProperty(),
         "org.opends.server.extensions.UserDefinedVirtualAttributeProvider");
@@ -804,7 +796,7 @@
 
 
 
-  // Asserts that the actual set of DNs contains the expected values.
+  /** Asserts that the actual set of DNs contains the expected values. */
   private void assertDNSetEquals(SortedSet<DN> actual, String... expected) {
     String[] actualStrings = new String[actual.size()];
     int i = 0;
@@ -817,14 +809,14 @@
 
 
 
-  // Deletes the named sub-tree.
+  /** Deletes the named sub-tree. */
   private void deleteSubtree(String dn) throws Exception {
     getAdaptor().deleteSubtree(new LdapName(dn));
   }
 
 
 
-  // Gets the JNDI connection for the test server instance.
+  /** Gets the JNDI connection for the test server instance. */
   private synchronized JNDIDirContextAdaptor getAdaptor() throws Exception {
     if (adaptor == null) {
       adaptor = JNDIDirContextAdaptor.simpleSSLBind("127.0.0.1", TestCaseUtils
@@ -835,7 +827,7 @@
 
 
 
-  // Gets the named parent configuration.
+  /** Gets the named parent configuration. */
   private TestParentCfg getParent(String name) throws IllegalArgumentException,
       ConfigException {
     ServerManagementContext ctx = ServerManagementContext.getInstance();

--
Gitblit v1.10.0