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

kenneth_suter
15.34.2007 80c58327faaa4873369f6bb949e62792c2f708e0
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/asn1/TestASN1Exception.java
@@ -31,7 +31,7 @@
import org.testng.annotations.Test;
import static org.testng.Assert.*;
import org.opends.messages.Message;
/**
@@ -47,7 +47,7 @@
  @Test()
  public void testConstructor1()
  {
    new ASN1Exception(1, "Test");
    new ASN1Exception(Message.raw("Test"));
  }
@@ -59,22 +59,8 @@
  @Test()
  public void testConstructor2()
  {
    new ASN1Exception(1, "Test", new Exception());
    new ASN1Exception(Message.raw("Test"), new Exception());
  }
  /**
   * Tests the <CODE>getMessageID</CODE> method.
   */
  @Test
  public void testGetMessageID()
  {
    for (int i=0; i < 100; i++)
    {
      ASN1Exception e = new ASN1Exception(i, "Test");
      assertEquals(e.getMessageID(), i);
    }
  }
}