Package org.rioproject.impl.associations.filter

Examples of org.rioproject.impl.associations.filter.VersionMatchFilter.check()


public class VersionMatchFilterTest {

    @Test
    public void testVersionMatchFilter1() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertTrue(versionMatchFilter.check(makeAssociationDescriptor("1.*"), makeServiceItem("1.1")));
    }

    @Test
    public void testVersionMatchFilter2() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here


    }

    @Test
    public void testVersionMatchFilter2() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertFalse(versionMatchFilter.check(makeAssociationDescriptor("1.*"), makeServiceItem()));
    }

    @Test
    public void testVersionMatchFilter3() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here

    }

    @Test
    public void testVersionMatchFilter3() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertFalse(versionMatchFilter.check(makeAssociationDescriptor("1.*"), makeServiceItem("2.1")));
    }

    @Test
    public void testVersionMatchFilter4() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here

    }

    @Test
    public void testVersionMatchFilter4() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertTrue(versionMatchFilter.check(makeAssociationDescriptor(null), makeServiceItem()));
    }

    @Test
    public void testVersionMatchFilter5() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here

    }

    @Test
    public void testVersionMatchFilter5() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertTrue(versionMatchFilter.check(makeAssociationDescriptor(null), makeServiceItem()));
    }

    @Test
    public void testVersionMatchFilter6() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here

    }

    @Test
    public void testVersionMatchFilter6() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertFalse(versionMatchFilter.check(makeAssociationDescriptor("2.0-SNAPSHOT"), makeServiceItem("1.0", "1.1", "1.2")));
    }

    @Test
    public void testVersionMatchFilter7() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here

    }

    @Test
    public void testVersionMatchFilter7() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertTrue(versionMatchFilter.check(makeAssociationDescriptor("dev-3.24.0"), makeServiceItem("dev-3.23.10, dev-3.24.0")));
    }

    ServiceItem makeServiceItem(String... versions) {
        UUID uuid = UUID.randomUUID();
        ServiceID sid = new ServiceID(uuid.getMostSignificantBits(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.