Package org.fest.swing.junit.xml

Examples of org.fest.swing.junit.xml.XmlAttributes


  public void should_add_test_node_as_child() {
    final TestStub test = new TestStub("hello");
    final XmlNode newNode = mockXmlNode();
    new EasyMockTemplate(targetNode) {
      @Override protected void expectations() {
        XmlAttributes attributes = attributes(name(ATTR_NAME).value("hello"),
                                              name(ATTR_CLASSNAME).value(TestStub.class.getName()));
        expect(targetNode.addNewNode(TESTCASE, attributes)).andReturn(newNode);
      }

      @Override protected void codeToTest() {
View Full Code Here


  public void should_add_test_node_as_child_and_set_test_name_to_unknown_if_test_name_is_null() {
    final TestStub test = new TestStub(null);
    final XmlNode newNode = mockXmlNode();
    new EasyMockTemplate(targetNode) {
      @Override protected void expectations() {
        XmlAttributes attributes = attributes(name(ATTR_NAME).value("unknown"),
                                              name(ATTR_CLASSNAME).value(TestStub.class.getName()));
        expect(targetNode.addNewNode(TESTCASE, attributes)).andReturn(newNode);
      }

      @Override protected void codeToTest() {
View Full Code Here

TOP

Related Classes of org.fest.swing.junit.xml.XmlAttributes

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.