test_class.file: core/src/test/java/dk/alexandra/fresco/framework/util/TestByteArrayHelper.java
test_class.identifier: TestByteArrayHelper
test_case.body: @Test
    public void testIllegalXorList() {
      List<byte[]> list1 = new ArrayList<>();
      List<byte[]> list2 = new ArrayList<>();
      list1.add(new byte[12]);
      list1.add(new byte[15]);
      list2.add(new byte[12]);
      list2.add(new byte[15]);
      list2.add(new byte[1]);
      boolean thrown = false;
      try {
        ByteArrayHelper.xor(list1, list2);
      } catch (IllegalArgumentException e) {
        assertEquals("The vectors are not of equal length", e.getMessage());
        thrown = true;
      }
      assertEquals(thrown, true);
  
      thrown = false;
      list1.add(new byte[2]);
      try {
        ByteArrayHelper.xor(list1, list2);
      } catch (IllegalArgumentException e) {
        assertEquals("The byte arrays are not of equal length", e.getMessage());
        thrown = true;
      }
      assertEquals(thrown, true);
    }
test_case.class_method_signature: TestByteArrayHelper.testIllegalXorList()
test_case.full_signature: @Test public void testIllegalXorList()
test_case.identifier: testIllegalXorList
test_case.invocations: add add add add add xor assertEquals getMessage assertEquals add xor assertEquals getMessage assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIllegalXorList()
focal_class.file: core/src/main/java/dk/alexandra/fresco/framework/util/ByteArrayHelper.java
focal_class.identifier: ByteArrayHelper
focal_class.class_method_signature: ByteArrayHelper.ByteArrayHelper()
focal_class.full_signature: private  ByteArrayHelper()
focal_class.identifier: ByteArrayHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ByteArrayHelper()
focal_class.class_method_signature: ByteArrayHelper.getBit(byte[] input, int index)
focal_class.full_signature: public static boolean getBit(byte[] input, int index)
focal_class.identifier: getBit
focal_class.modifiers: public static
focal_class.parameters: (byte[] input, int index)
focal_class.return: boolean
focal_class.signature: boolean getBit(byte[] input, int index)
focal_class.class_method_signature: ByteArrayHelper.setBit(byte[] input, int index, boolean choice)
focal_class.full_signature: public static void setBit(byte[] input, int index, boolean choice)
focal_class.identifier: setBit
focal_class.modifiers: public static
focal_class.parameters: (byte[] input, int index, boolean choice)
focal_class.return: void
focal_class.signature: void setBit(byte[] input, int index, boolean choice)
focal_class.class_method_signature: ByteArrayHelper.xor(List<byte[]> vector1, List<byte[]> vector2)
focal_class.full_signature: public static void xor(List<byte[]> vector1, List<byte[]> vector2)
focal_class.identifier: xor
focal_class.modifiers: public static
focal_class.parameters: (List<byte[]> vector1, List<byte[]> vector2)
focal_class.return: void
focal_class.signature: void xor(List<byte[]> vector1, List<byte[]> vector2)
focal_class.class_method_signature: ByteArrayHelper.xor(byte[] arr1, byte[] arr2)
focal_class.full_signature: public static void xor(byte[] arr1, byte[] arr2)
focal_class.identifier: xor
focal_class.modifiers: public static
focal_class.parameters: (byte[] arr1, byte[] arr2)
focal_class.return: void
focal_class.signature: void xor(byte[] arr1, byte[] arr2)
focal_class.class_method_signature: ByteArrayHelper.shiftArray(byte[] input, byte[] output, int positions)
focal_class.full_signature: public static void shiftArray(byte[] input, byte[] output, int positions)
focal_class.identifier: shiftArray
focal_class.modifiers: public static
focal_class.parameters: (byte[] input, byte[] output, int positions)
focal_class.return: void
focal_class.signature: void shiftArray(byte[] input, byte[] output, int positions)
focal_method.body: public static void xor(List<byte[]> vector1, List<byte[]> vector2) {
      if (vector1.size() != vector2.size()) {
        throw new IllegalArgumentException("The vectors are not of equal length");
      }
      for (int i = 0; i < vector1.size(); i++) {
        xor(vector1.get(i), vector2.get(i));
      }
    }
focal_method.class_method_signature: ByteArrayHelper.xor(List<byte[]> vector1, List<byte[]> vector2)
focal_method.full_signature: public static void xor(List<byte[]> vector1, List<byte[]> vector2)
focal_method.identifier: xor
focal_method.invocations: size size size xor get get
focal_method.modifiers: public static
focal_method.parameters: (List<byte[]> vector1, List<byte[]> vector2)
focal_method.return: void
focal_method.signature: void xor(List<byte[]> vector1, List<byte[]> vector2)