Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Instance.match()


    System.out.println("\n");
    System.out.println("setInt value is : " + inst.getProperty("setInt"));

    assertTrue ( inst.match("(setInt <* 5, 7, 55,985)")) ;
    assertTrue (!inst.match("(setInt *> 5, 7, 55,985)")) ;
    assertTrue ( inst.match("(setInt <* 05, 7, 55,985)")) ;
    //    assertTrue ( inst.match("(setInt <= 05, 7, 55,985)")) ;

    Set<Integer> setInt = new HashSet<Integer> () ;
    setInt.add(5) ;
View Full Code Here


    System.out.println("\n");
    System.out.println("setInt value is : " + inst.getProperty("setInt"));

    assertTrue ( inst.match("(setInt <* 5, 7, 55,985)")) ;
    assertTrue (!inst.match("(setInt *> 5, 7, 55,985)")) ;
    assertTrue ( inst.match("(setInt <* 05, 7, 55,985)")) ;
    //    assertTrue ( inst.match("(setInt <= 05, 7, 55,985)")) ;

    Set<Integer> setInt = new HashSet<Integer> () ;
    setInt.add(5) ;
    setInt.add(985) ;
View Full Code Here

    templateMessage = "Calling match method with filter = %s, should result in False since impl-name is %s";

    message = String.format(templateMessage, "(impl-name=SamsunG*)",
        samsungInst.getProperty("impl-name"));

    Assert.assertFalse(message, samsungInst.match("(impl-name=SamsunG*)"));

  }

  @Test
  public void PropertiesDataTypeListInt_tc053() {
View Full Code Here

    impl.setProperty("setInt", setInt); // for match tests

    System.out.println("\n");
    System.out.println("setInt value is : " + inst.getProperty("setInt"));

    assertTrue ( inst.match("(setInt <* 5, 7, 55,985)")) ;
    assertTrue (!inst.match("(setInt *> 5, 7, 55,985)")) ;
    //    assertTrue ( inst.match("(setInt <* 05, 7, 55,985)")) ;
    //    assertTrue ( inst.match("(setInt <= 05, 7, 55,985)")) ;


View Full Code Here

    System.out.println("\n");
    System.out.println("setInt value is : " + inst.getProperty("setInt"));

    assertTrue ( inst.match("(setInt <* 5, 7, 55,985)")) ;
    assertTrue (!inst.match("(setInt *> 5, 7, 55,985)")) ;
    //    assertTrue ( inst.match("(setInt <* 05, 7, 55,985)")) ;
    //    assertTrue ( inst.match("(setInt <= 05, 7, 55,985)")) ;


    inst.setProperty("OS", "Android, Linux, IOS") ; // ok
View Full Code Here

    System.out.println("\n");
    System.out.println("OS value is : " + inst.getProperty("OS"));
    System.out.println("toto does not exist. Its value is null");

    //non instantiated attributes
    ok = inst.match("(toto= Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto= Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto<*Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto<*Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto=testnull): " + ok);
View Full Code Here

    System.out.println("toto does not exist. Its value is null");

    //non instantiated attributes
    ok = inst.match("(toto= Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto= Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto<*Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto<*Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto=testnull): " + ok);
    ok = inst.match("(toto<*testnull,)") ;
    System.out.println("Matching: (toto<*testnull,): " + ok);
View Full Code Here

    //non instantiated attributes
    ok = inst.match("(toto= Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto= Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto<*Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto<*Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto=testnull): " + ok);
    ok = inst.match("(toto<*testnull,)") ;
    System.out.println("Matching: (toto<*testnull,): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto<*testnull): " + ok);
View Full Code Here

    System.out.println("Matching: (toto= Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto<*Android  , Linux  , IOS)") ;
    System.out.println("Matching: (toto<*Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto=testnull): " + ok);
    ok = inst.match("(toto<*testnull,)") ;
    System.out.println("Matching: (toto<*testnull,): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto<*testnull): " + ok);

    ok = inst.match("(toto=*)") ;
View Full Code Here

    System.out.println("Matching: (toto<*Android  , Linux  , IOS): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto=testnull): " + ok);
    ok = inst.match("(toto<*testnull,)") ;
    System.out.println("Matching: (toto<*testnull,): " + ok);
    ok = inst.match("(toto=testnull)") ;
    System.out.println("Matching: (toto<*testnull): " + ok);

    ok = inst.match("(toto=*)") ;
    System.out.println("Matching: (toto=*): " + ok);
    ok = inst.match("(OS=*)") ;
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.