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

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/tests/unit-tests-testng/src/org/opends/sdk/LinkedAttributeTestCase.java
File was renamed from sdk/tests/unit-tests-testng/src/org/opends/sdk/LinkedAttributeTest.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 */
package org.opends.sdk;
@@ -33,23 +33,20 @@
import org.testng.Assert;
import org.testng.annotations.Test;
import org.opends.sdk.ByteString;
/**
 * Test {@code BasicAttribute}.
 */
@Test(groups = { "precommit", "types", "sdk" }, sequential = true)
public final class LinkedAttributeTest extends OpenDSTestCase
public final class LinkedAttributeTestCase extends SdkTestCase
{
  @Test
  public void SmokeTest() throws Exception
  public void smokeTest() throws Exception
  {
    // TODO: write a proper test suite.
    AbstractAttribute attribute = new LinkedAttribute(
        AttributeDescription.valueOf("ALTSERVER", Schema
            .getCoreSchema()));
    final AbstractAttribute attribute = new LinkedAttribute(
        AttributeDescription.valueOf("ALTSERVER", Schema.getCoreSchema()));
    attribute.add(1);
    attribute.add("a value");
@@ -57,8 +54,7 @@
    Assert.assertTrue(attribute.contains(1));
    Assert.assertTrue(attribute.contains("a value"));
    Assert.assertTrue(attribute.contains(ByteString
        .valueOf("another value")));
    Assert.assertTrue(attribute.contains(ByteString.valueOf("another value")));
    Assert.assertEquals(attribute.size(), 3);
    Assert.assertTrue(attribute.remove(1));
@@ -67,8 +63,7 @@
    Assert.assertEquals(attribute.size(), 2);
    Assert.assertTrue(attribute.remove("a value"));
    Assert.assertEquals(attribute.size(), 1);
    Assert.assertTrue(attribute.remove(ByteString
        .valueOf("another value")));
    Assert.assertTrue(attribute.remove(ByteString.valueOf("another value")));
    Assert.assertEquals(attribute.size(), 0);
  }
}