All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.com.generationjava.collections.SimpleAliasTest Maven / Gradle / Ivy

Go to download

A re-usable library of Java classes. Originally stand-alone, many of the classes have since gone into various parts of the Jakarta Commons project, and thus this package contains various dependencies.

The newest version!
package com.generationjava.collections;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;

public class SimpleAliasTest extends TestCase {

    public SimpleAliasTest(String name) {
        super(name);
    }

    //-----------------------------------------------------------------------
    // To test: 
    //   SimpleAlias(Object) -> getAlias()

    public void testNull() {
        SimpleAlias alias = new SimpleAlias(null);
        assertEquals(null, alias.getAlias());
    }

    public void test() {
        SimpleAlias alias = new SimpleAlias("value");
        assertEquals("value", alias.getAlias());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy