Package org.milyn.profile

Examples of org.milyn.profile.DefaultProfileConfigDigester


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

  public void testParse_exception_null_stream() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();

    try {
      digester.parse(null);
      fail("failed to throw arg exception on null stream");
    } catch (IllegalArgumentException e) {
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here


      fail(e.getMessage());
    }
  }

  public void testParse_fail_no_name() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_no_name.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on no name");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_fail_no_list() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_no_list.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on no list");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_fail_no_attribs() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_no_attribs.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on no attributes");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_fail_empty_list() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_empty_list.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on empty list");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_fail_empty_name() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_empty_name.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on empty name");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_fail_bad_list() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_bad_list.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on bad list");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_fail_no_profile() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_fail_no_profile.xml");

    try {
      digester.parse(stream);
      fail("failed to throw SAXException on no profile");
    } catch (SAXException e) {
    } catch (IOException e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testParse_success_all_list_seperators() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_success_all_list_separators.xml");

    try {
      digester.parse(stream);
    } catch (Exception e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
  }
View Full Code Here

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

  public void testParse_success_two_profiles() {
    DefaultProfileConfigDigester digester = new DefaultProfileConfigDigester();
    InputStream stream = getClass().getResourceAsStream(
        "profiles_success_two_profiles.xml");
    ProfileStore store = null;

    try {
      store = digester.parse(stream);
    } catch (Exception e) {
      e.printStackTrace();
      fail("Unexpected Exception: " + e.getMessage());
    }
    try {
View Full Code Here

TOP

Related Classes of org.milyn.profile.DefaultProfileConfigDigester

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.