Package org.milyn.payload

Examples of org.milyn.payload.Export


public class ExportTest
{
    @Test
    public void equalsIsRelexive()
    {
        Export export = new Export(String.class);
        assertEquals(export, export);
    }
View Full Code Here


    }
   
    @Test
    public void equalsIsSymetric()
    {
        Export x = new Export(String.class);
        Export y = new Export(String.class);
        assertEquals(x, y);
        assertEquals(y, x);
        assertEquals(x.hashCode(), y.hashCode());
    }
View Full Code Here

    }
   
    @Test
    public void equalsIsTransitive()
    {
        Export x = new Export(String.class);
        Export y = new Export(String.class);
        Export z = new Export(String.class);
        assertEquals(x, y);
        assertEquals(y, z);
        assertEquals(x, z);
       
        assertEquals(x.hashCode(), y.hashCode());
        assertEquals(y.hashCode(), z.hashCode());
        assertEquals(x.hashCode(), z.hashCode());
    }
View Full Code Here

    }
   
    @Test
    public void equalsIsConsistent()
    {
        assertFalse(new Export(String.class, "exportNameX").equals(new Export(String.class)));
        assertFalse(new Export(String.class, "exportNameX").equals(new Export(String.class, "exportNameY")));
        assertTrue(new Export(String.class, "exportNameX").equals(new Export(String.class, "exportNameX")));
       
        assertFalse(new Export(String.class, "exportNameX", "ext1").equals(new Export(String.class, "exportNameX")));
        assertTrue(new Export(String.class, "exportNameX", "ext1").equals(new Export(String.class, "exportNameX","ext1")));
    }
View Full Code Here

    }
   
    @Test
    public void equalsNull()
    {
        Export export = new Export(String.class);
        assertFalse(export.equals(null));
    }
View Full Code Here

    @Test
    public void createMultipleExports()
    {
        Set<Export> results = new HashSet<Export>();
        results.add(new Export(StringResult.class));
        results.add(new Export(JavaResult.class));
        Exports exports = new Exports(results);

        Collection<Export> exportTypes = exports.getExports();
        assertEquals(2, exportTypes.size());
    }
View Full Code Here

TOP

Related Classes of org.milyn.payload.Export

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.