Package org.milyn.profile

Examples of org.milyn.profile.DefaultProfileSet


  public DefaultProfileSet profileSet;

  public MockUAContext(String commonName) {
    this.commonName = commonName;
    profileSet = new DefaultProfileSet(commonName);
  }
View Full Code Here


  public DefaultProfileSetTest(String arg0) {
    super(arg0);
  }

  public void testAddProfile_exceptions() {
    DefaultProfileSet set = new DefaultProfileSet("baseProfile");

    try {
      set.addProfile((Profile) null);
      fail("no arg exception on null");
    } catch (IllegalArgumentException e) {
    }
    try {
      set.addProfile("");
      fail("no arg exception on empty");
    } catch (IllegalArgumentException e) {
    }
    try {
      set.addProfile(" ");
      fail("no arg exception on whitespace");
    } catch (IllegalArgumentException e) {
    }
  }
View Full Code Here

    } catch (IllegalArgumentException e) {
    }
  }

  public void testIsMember_exceptions() {
    DefaultProfileSet set = new DefaultProfileSet("baseProfile");

    try {
      set.isMember(null);
      fail("no arg exception on null");
    } catch (IllegalArgumentException e) {
    }
  }
View Full Code Here

    } catch (IllegalArgumentException e) {
    }
  }

  public void testIsMember() {
    DefaultProfileSet set = new DefaultProfileSet("baseProfile");

    assertTrue(!set.isMember("xxx"));
    set.addProfile("xxx");
    assertTrue(set.isMember("xxx"));

    assertTrue(!set.isMember("yyy"));
    set.addProfile(" YYY");
    assertTrue(set.isMember("YYY"));
    assertTrue(set.isMember(" YYY"));
    assertTrue(set.isMember("YYY "));
  }
View Full Code Here

    super(arg0);
  }

  public void testAddGetProfileSet() {
    ProfileStore store = new DefaultProfileStore();
    DefaultProfileSet set1 = new DefaultProfileSet("device1");
    DefaultProfileSet set2 = new DefaultProfileSet("device2");

    try {
      DefaultProfileStore.UnitTest.addProfileSet(store, null);
      fail("no IllegalArgumentException on null devicename");
    } catch (IllegalArgumentException e) {
View Full Code Here

TOP

Related Classes of org.milyn.profile.DefaultProfileSet

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.