Examples of GOMAttribute


Examples of org.apache.lucene.gdata.gom.GOMAttribute

    }
    this.arbXML.processAttribute(name, "testme");
    {
      List<GOMAttribute> attributes = this.arbXML.getAttributes();
      assertTrue(attributes.size() == 1);
      GOMAttribute attribute = attributes.get(0);
      assertNotNull(attribute);
      assertEquals(name, attribute.getQname());
      assertEquals(name.getLocalPart(), attribute.getLocalName());
      assertEquals("testme", attribute.getTextValue());
    }

    {
      this.arbXML.processAttribute(name, null);
      List<GOMAttribute> attributes = this.arbXML.getAttributes();
      assertTrue(attributes.size() == 2);
      GOMAttribute attribute = attributes.get(1);
      assertNotNull(attribute);
      assertEquals(name, attribute.getQname());
      assertEquals(name.getLocalPart(), attribute.getLocalName());
      assertEquals("", attribute.getTextValue());
    }
  }
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.