Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.DerbyVersion


        assertEquals(0, _10_8.getPoint());
        assertEquals(9, _11_9.getPoint());
    }

    public void testCreateGet() {
        DerbyVersion v = new DerbyVersion(1, 2, 3, 4);
        assertEquals(1, v.getMajor());
        assertEquals(2, v.getMinor());
        assertEquals(3, v.getFixpack());
        assertEquals(4, v.getPoint());
    }
View Full Code Here


        assertFalse(_11_0.equals(_10_8));
        assertFalse(_10_5_2_0.equals(_10_5_3_0));
    }

    public void testParseString() {
        DerbyVersion dv = DerbyVersion.parseVersionString(
                "10.9.0.0 alpha - (1180861M)");
        assertTrue(dv.equals(_10_9));
        assertEquals(0, dv.compareTo(_10_9));

        dv = DerbyVersion.parseVersionString("10.8.1.2");
        assertTrue(dv.equals(_10_8_1_2));
        assertEquals(0, dv.compareTo(_10_8_1_2));
       
        dv = DerbyVersion.parseVersionString("   10.8.1.2   ");
        assertTrue(dv.equals(_10_8_1_2));
        assertEquals(0, dv.compareTo(_10_8_1_2));

        try {
            dv = DerbyVersion.parseVersionString("10.8.1");
            fail("should have failed");
        } catch (IllegalArgumentException iae) {
View Full Code Here

TOP

Related Classes of org.apache.derbyTesting.junit.DerbyVersion

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.