test_class.file: src/de/slackspace/openkeepass/domain/BinariesTest.java
test_class.identifier: BinariesTest
test_case.body: @Test
      public void shouldUnmarshallXmlToObject() throws Exception {
          int id = 5;
          Binary binary = new BinaryBuilder()
                  .id(id)
                  .isCompressed(false)
                  .data(new byte[10])
                  .build();
  
          Binaries binaries = new BinariesBuilder().addBinary(binary).build();
  
          String xml = "<Binaries><Binary ID='5' Compressed='False'>AAAAAAAAAAAAAA==</Binary></Binaries>";
          ByteArrayInputStream inputStream = new ByteArrayInputStream(xml.getBytes());
          Binaries binariesUnmarshall =
                  new SimpleXmlParser().fromXml(inputStream, new NullProtectionStrategy(), Binaries.class);
  
          Assert.assertEquals(binaries.getBinaries().size(), binariesUnmarshall.getBinaries().size());
          Assert.assertArrayEquals(binaries.getBinaries().get(0).getData(), binariesUnmarshall.getBinaries().get(0).getData());
          Assert.assertEquals(binaries.getBinaries().get(0).getId(), binariesUnmarshall.getBinaries().get(0).getId());
          Assert.assertEquals(binaries.getBinaries().get(0).isCompressed(), binariesUnmarshall.getBinaries().get(0).isCompressed());
      }
test_case.class_method_signature: BinariesTest.shouldUnmarshallXmlToObject()
test_case.full_signature: @Test public void shouldUnmarshallXmlToObject()
test_case.identifier: shouldUnmarshallXmlToObject
test_case.invocations: build data isCompressed id build addBinary getBytes fromXml assertEquals size getBinaries size getBinaries assertArrayEquals getData get getBinaries getData get getBinaries assertEquals getId get getBinaries getId get getBinaries assertEquals isCompressed get getBinaries isCompressed get getBinaries
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldUnmarshallXmlToObject()
focal_class.declarator: binaryList = new ArrayList<Binary>()
focal_class.modifier: @ElementList(name = "Binary", inline = true, required = false)
      private
focal_class.original_string: @ElementList(name = "Binary", inline = true, required = false)
      private List<Binary> binaryList = new ArrayList<Binary>();
focal_class.type: List<Binary>
focal_class.var_name: binaryList
focal_class.file: src/de/slackspace/openkeepass/domain/Binaries.java
focal_class.identifier: Binaries
focal_class.class_method_signature: Binaries.Binaries()
focal_class.full_signature:   Binaries()
focal_class.identifier: Binaries
focal_class.parameters: ()
focal_class.signature:  Binaries()
focal_class.class_method_signature: Binaries.Binaries(BinariesContract binariesContract)
focal_class.full_signature: public  Binaries(BinariesContract binariesContract)
focal_class.identifier: Binaries
focal_class.modifiers: public
focal_class.parameters: (BinariesContract binariesContract)
focal_class.signature:  Binaries(BinariesContract binariesContract)
focal_class.class_method_signature: Binaries.getBinaries()
focal_class.full_signature: public List<Binary> getBinaries()
focal_class.identifier: getBinaries
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Binary>
focal_class.signature: List<Binary> getBinaries()
focal_class.class_method_signature: Binaries.getBinaryById(int id)
focal_class.full_signature: public Binary getBinaryById(int id)
focal_class.identifier: getBinaryById
focal_class.modifiers: public
focal_class.parameters: (int id)
focal_class.return: Binary
focal_class.signature: Binary getBinaryById(int id)
focal_class.class_method_signature: Binaries.hashCode()
focal_class.full_signature: @Override public final int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Binaries.equals(Object obj)
focal_class.full_signature: @Override public final boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public final
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_method.body: public List<Binary> getBinaries() {
          return binaryList;
      }
focal_method.class_method_signature: Binaries.getBinaries()
focal_method.full_signature: public List<Binary> getBinaries()
focal_method.identifier: getBinaries
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<Binary>
focal_method.signature: List<Binary> getBinaries()