Package org.jasig.portal.groups.pags.testers

Examples of org.jasig.portal.groups.pags.testers.ValueMissingTester


    msg = "Testing IPerson " + newPerson;
    print(msg);

    String testKey = randomStrings[0].toLowerCase();
    // This test should fail since the IPerson attribute exists.
    IPersonTester tester1 = new ValueMissingTester(key1, randomStrings[0]);
    // This test should pass; the attribute is blank.
    IPersonTester tester2 = new ValueMissingTester(key2, testKey);
    // This test should pass; the IPerson does not have a value for key3.
    IPersonTester tester3 = new ValueMissingTester(key3, testKey);
   
    msg = "Testing " + tester1;
    assertFalse(msg, tester1.test(newPerson));
    msg = "Testing " + tester2;
    assertTrue(msg, tester2.test(newPerson));
    msg = "Testing " + tester3;
    assertTrue(msg, tester3.test(newPerson));
    print("Success!");
    print(CR + "***** LEAVING PAGSTester.testValueMissingTester() *****" + CR);

}
View Full Code Here


    msg = "Testing IPerson " + newPerson;
    print(msg);

    String testKey = randomStrings[0].toLowerCase();
    // This test should fail since the IPerson attribute exists.
    IPersonTester tester1 = new ValueMissingTester(key1, randomStrings[0]);
    // This test should pass; the attribute is blank.
    IPersonTester tester2 = new ValueMissingTester(key2, testKey);
    // This test should pass; the IPerson does not have a value for key3.
    IPersonTester tester3 = new ValueMissingTester(key3, testKey);
   
    msg = "Testing " + tester1;
    assertFalse(msg, tester1.test(newPerson));
    msg = "Testing " + tester2;
    assertTrue(msg, tester2.test(newPerson));
    msg = "Testing " + tester3;
    assertTrue(msg, tester3.test(newPerson));
    print("Success!");
    print(CR + "***** LEAVING PAGSTester.testValueMissingTester() *****" + CR);

}
View Full Code Here

TOP

Related Classes of org.jasig.portal.groups.pags.testers.ValueMissingTester

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.