test_class.file: tool/hash/src/test/java/org/openscience/cdk/hash/stereo/CombinedPermutationParityTest.java
test_class.identifier: CombinedPermutationParityTest
test_case.body: @Test
      public void testParity() throws Exception {
          PermutationParity left = mock(PermutationParity.class);
          PermutationParity right = mock(PermutationParity.class);
          PermutationParity parity = new CombinedPermutationParity(left, right);
  
          long[] dummy = new long[5];
  
          when(left.parity(dummy)).thenReturn(-1);
          when(right.parity(dummy)).thenReturn(-1);
          assertThat(parity.parity(dummy), is(1));
  
          verify(left, times(1)).parity(dummy);
          verify(right, times(1)).parity(dummy);
  
          when(left.parity(dummy)).thenReturn(-1);
          when(right.parity(dummy)).thenReturn(1);
          assertThat(parity.parity(dummy), is(-1));
  
          when(left.parity(dummy)).thenReturn(1);
          when(right.parity(dummy)).thenReturn(-1);
          assertThat(parity.parity(dummy), is(-1));
  
          when(left.parity(dummy)).thenReturn(1);
          when(right.parity(dummy)).thenReturn(1);
          assertThat(parity.parity(dummy), is(1));
  
          when(left.parity(dummy)).thenReturn(0);
          when(right.parity(dummy)).thenReturn(1);
          assertThat(parity.parity(dummy), is(0));
  
          when(left.parity(dummy)).thenReturn(1);
          when(right.parity(dummy)).thenReturn(0);
          assertThat(parity.parity(dummy), is(0));
  
          when(left.parity(dummy)).thenReturn(0);
          when(right.parity(dummy)).thenReturn(-1);
          assertThat(parity.parity(dummy), is(0));
  
          when(left.parity(dummy)).thenReturn(-1);
          when(right.parity(dummy)).thenReturn(0);
          assertThat(parity.parity(dummy), is(0));
      }
test_case.class_method_signature: CombinedPermutationParityTest.testParity()
test_case.full_signature: @Test public void testParity()
test_case.identifier: testParity
test_case.invocations: mock mock thenReturn when parity thenReturn when parity assertThat parity is parity verify times parity verify times thenReturn when parity thenReturn when parity assertThat parity is thenReturn when parity thenReturn when parity assertThat parity is thenReturn when parity thenReturn when parity assertThat parity is thenReturn when parity thenReturn when parity assertThat parity is thenReturn when parity thenReturn when parity assertThat parity is thenReturn when parity thenReturn when parity assertThat parity is thenReturn when parity thenReturn when parity assertThat parity is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParity()
focal_class.declarator: left
focal_class.modifier: private final
focal_class.original_string: private final PermutationParity left;
focal_class.type: PermutationParity
focal_class.var_name: left
focal_class.declarator: right
focal_class.modifier: private final
focal_class.original_string: private final PermutationParity right;
focal_class.type: PermutationParity
focal_class.var_name: right
focal_class.file: tool/hash/src/main/java/org/openscience/cdk/hash/stereo/CombinedPermutationParity.java
focal_class.identifier: CombinedPermutationParity
focal_class.class_method_signature: CombinedPermutationParity.CombinedPermutationParity(PermutationParity left, PermutationParity right)
focal_class.full_signature: public  CombinedPermutationParity(PermutationParity left, PermutationParity right)
focal_class.identifier: CombinedPermutationParity
focal_class.modifiers: public
focal_class.parameters: (PermutationParity left, PermutationParity right)
focal_class.signature:  CombinedPermutationParity(PermutationParity left, PermutationParity right)
focal_class.class_method_signature: CombinedPermutationParity.parity(long[] current)
focal_class.full_signature: @Override public int parity(long[] current)
focal_class.identifier: parity
focal_class.modifiers: @Override public
focal_class.parameters: (long[] current)
focal_class.return: int
focal_class.signature: int parity(long[] current)
focal_class.superclass: extends PermutationParity
focal_method.body: @Override
      public int parity(long[] current) {
          return left.parity(current) * right.parity(current);
      }
focal_method.class_method_signature: CombinedPermutationParity.parity(long[] current)
focal_method.full_signature: @Override public int parity(long[] current)
focal_method.identifier: parity
focal_method.invocations: parity parity
focal_method.modifiers: @Override public
focal_method.parameters: (long[] current)
focal_method.return: int
focal_method.signature: int parity(long[] current)