mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
24.56.2011 83f5243abfde0b0ea726b46cdcb4f638c408d060
Fix missing brackets in unit-test to avoid NPE (plus a few minor typos)
1 files modified
10 ■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java 10 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
@@ -133,6 +133,7 @@
   *           If the environment could not be set up.
   */
  @BeforeClass
  @Override
  public void setUp() throws Exception
  {
    super.setUp();
@@ -720,9 +721,11 @@
      for (int i = 0; i< THREADS; i++)
      {
        if (reader[i] != null)
        {
          reader[i].join(10000);
        // kill the thread in case it is not yet stopped.
        reader[i].interrupt();
          // kill the thread in case it is not yet stopped.
          reader[i].interrupt();
        }
      }
      debugInfo("multipleWriterMultipleReader reader's ended, now stop brokers");
      for (int i = 0; i< THREADS; i++)
@@ -1077,6 +1080,7 @@
   * @throws Exception If the environment could not be set up.
   */
  @AfterClass
  @Override
  public void classCleanUp() throws Exception
  {
    callParanoiaCheck = false;
@@ -1450,7 +1454,7 @@
       DeleteMsg delMsg = new DeleteMsg("o=example,"+suffix, cn, "uid");
       l.add(delMsg);
     }
     catch(Exception e) {};
     catch(Exception ignored) {};
     return l;
   }