Examples of ProfileSet


Examples of org.milyn.profile.ProfileSet

    }

    private void assertProfilesOK(Smooks smooks) {
        ExecutionContext execContext;
        execContext = smooks.createExecutionContext("profileA");
        ProfileSet profileA = execContext.getTargetProfiles();
        assertTrue(profileA.isMember("profileA"));
        assertTrue(profileA.isMember("profile1"));
        assertTrue(profileA.isMember("profile2"));
        assertTrue(!profileA.isMember("profileB"));
        assertTrue(!profileA.isMember("profile3"));

        execContext = smooks.createExecutionContext("profileB");
        ProfileSet profileB = execContext.getTargetProfiles();
        assertTrue(profileB.isMember("profileB"));
        assertTrue(profileB.isMember("profile3"));
        assertTrue(profileB.isMember("profileA"));
        assertTrue(profileB.isMember("profile1"));
        assertTrue(profileB.isMember("profile2"));
    }
View Full Code Here

Examples of org.milyn.profile.ProfileSet

    } catch (Exception e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
    try {
      ProfileSet device = store.getProfileSet("MSIE5");
      assertTrue(device.isMember("html"));
      assertTrue(!device.isMember("wml"));
    } catch (UnknownProfileMemberException e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
    try {
      ProfileSet device = store.getProfileSet("EricssonA2618");
      assertTrue(device.isMember("wml"));
      assertTrue(!device.isMember("html"));
    } catch (UnknownProfileMemberException e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
  }
View Full Code Here

Examples of org.milyn.profile.ProfileSet

      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }

    try {
      ProfileSet MSIE5 = store.getProfileSet("MSIE5");
      assertTrue(MSIE5.isMember("html"));
      assertTrue(!MSIE5.isMember("wml"));
    } catch (UnknownProfileMemberException e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
  }
View Full Code Here

Examples of org.milyn.profile.ProfileSet

      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }

    try {
      ProfileSet MSIE5 = store.getProfileSet("MSIE5");
      assertTrue(MSIE5.isMember("html"));
      assertTrue(MSIE5.isMember("css-enabled"));
      assertTrue(MSIE5.isMember("msie"));
      assertTrue(MSIE5.isMember("large"));
      assertTrue(MSIE5.isMember("html4"));
      assertTrue(!MSIE5.isMember("wml"));
      assertTrue(!MSIE5.isMember("wml"));
      assertTrue(!MSIE5.isMember("PDA"));
    } catch (UnknownProfileMemberException e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
  }
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.