test_class.file: Java/jgenetic/src/test/java/szaq/lcs/ga/impl/SwapMutationTest.java
test_class.identifier: SwapMutationTest
test_case.body: @Test
  	public void testSwapMutation() {
  		final MutationOperator mutation = new SwapMutation(1);
  
  		final WildcardGene[] inital = new WildcardGene[] { TRUE, FALSE, FALSE, FALSE, FALSE };
  		final WildcardChromosome origin = WildcardChromosome.of(inital);
  
  		final WildcardChromosome initChromosome = WildcardChromosome.of(inital);
  		final Classifier classifier = new Classifier("rule1", initChromosome, 0, Parameters.init());
  		final String beforeMutation = classifier.getCondition().toCanonicalString();
  		log.info("{} vs {}", beforeMutation, WildcardChromosome.of(inital).toCanonicalString());
  		// -- Mutate
  		mutation.mutate(classifier);
  
  		log.info("{} vs {}", beforeMutation, classifier.getCondition().toCanonicalString());
  
  		Assertions.assertThat(classifier.getCondition().countWildcards())
  				.isEqualByComparingTo(classifier.getCondition().countWildcards());
  		Assertions.assertThat(origin.matches(classifier.getCondition())).isFalse();
  	}
test_case.class_method_signature: SwapMutationTest.testSwapMutation()
test_case.full_signature: @Test public void testSwapMutation()
test_case.identifier: testSwapMutation
test_case.invocations: of of init toCanonicalString getCondition info toCanonicalString of mutate info toCanonicalString getCondition isEqualByComparingTo assertThat countWildcards getCondition countWildcards getCondition isFalse assertThat matches getCondition
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSwapMutation()
focal_class.declarator: RAND = new Random()
focal_class.modifier: private static final
focal_class.original_string: private static final Random RAND = new Random();
focal_class.type: Random
focal_class.var_name: RAND
focal_class.declarator: mutationPropability
focal_class.modifier: public
focal_class.original_string: public double mutationPropability;
focal_class.type: double
focal_class.var_name: mutationPropability
focal_class.file: Java/jgenetic/src/main/java/szaq/lcs/ga/impl/SwapMutation.java
focal_class.identifier: SwapMutation
focal_class.interfaces: implements MutationOperator
focal_class.class_method_signature: SwapMutation.SwapMutation(final double mutationPropability)
focal_class.full_signature: public  SwapMutation(final double mutationPropability)
focal_class.identifier: SwapMutation
focal_class.modifiers: public
focal_class.parameters: (final double mutationPropability)
focal_class.signature:  SwapMutation(final double mutationPropability)
focal_class.class_method_signature: SwapMutation.mutate(final Classifier classifier)
focal_class.full_signature: @Override public Classifier mutate(final Classifier classifier)
focal_class.identifier: mutate
focal_class.modifiers: @Override public
focal_class.parameters: (final Classifier classifier)
focal_class.return: Classifier
focal_class.signature: Classifier mutate(final Classifier classifier)
focal_class.superclass: extends SwapMutator<EnumGene<WildcardGene>, Double>
focal_method.body: public SwapMutation(final double mutationPropability) {
  		this.mutationPropability = mutationPropability;
  	}
focal_method.class_method_signature: SwapMutation.SwapMutation(final double mutationPropability)
focal_method.full_signature: public  SwapMutation(final double mutationPropability)
focal_method.identifier: SwapMutation
focal_method.modifiers: public
focal_method.parameters: (final double mutationPropability)
focal_method.signature:  SwapMutation(final double mutationPropability)