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

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

There is a newer version: 3.1
Show newest version
package com.generationjava.collections;

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

import com.generationjava.lang.ClassW;
import java.util.Map;

public class FQMapTest extends TestCase {

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

    //-----------------------------------------------------------------------
    // To test: 

    public void testFQ() {
        Map map = new FQMap();
        map.put("hey","you");
        map.put("well.you","hmmm");
        map.put(this,this);

        assertEquals("you", map.get("hey"));
        assertEquals(this, map.get(this));
        assertEquals("hmmm", map.get("well.you"));
        assertEquals(true, ClassW.classInstanceOf(map.get("well").getClass(), "java.util.Map"));
        assertEquals(3, map.size());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy