/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ Franz Wilhelmstötter
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    Franz Wilhelmstötter (franz.wilhelmstoetter@gmx.at)
 */
package org.jenetix;

import java.math.BigInteger;

import org.jenetics.util.IO;

/**
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 */
public class BigIntegerGeneTest {

	public static void main(final String[] args) throws Exception {
		final BigIntegerGene gene = BigIntegerGene.of(
			BigInteger.valueOf(0), BigInteger.valueOf(Long.MAX_VALUE)
		);

		IO.jaxb.write(gene, System.out);
	}

}

@@ -786,16 +786,92 @@
 teger;%0A%0A
+import org.testng.annotations.Test;%0A%0Aimport org.jenetics.NumericGeneTester;%0A
 import o
@@ -887,18 +887,23 @@
 cs.util.
-IO
+Factory
 ;%0A%0A/**%0A 
@@ -987,16 +987,22 @@
 /a%3E%0A */%0A
+@Test%0A
 public c
@@ -1028,79 +1028,76 @@
 Test
- %7B%0A%0A%09public static void main(final String%5B%5D args) throws Exception %7B%0A%09%09
+%0A%09extends NumericGeneTester%3CBigInteger, BigIntegerGene%3E%0A%7B%0A%0A%09private 
 fina
@@ -1113,20 +1113,24 @@
 gerGene 
-gene
+_factory
  = BigIn
@@ -1142,16 +1142,15 @@
 Gene
+%0A%09%09
 .of(
-%0A%09%09%09
 BigI
@@ -1160,18 +1160,12 @@
 ger.
-valueOf(0)
+ZERO
 , Bi
@@ -1200,52 +1200,89 @@
 LUE)
-%0A%09%09
 );%0A%0A%09
-%09IO.jaxb.wri
+@Override protected Factory%3CBigIn
 te
-(
 ge
-ne, System.out)
+rGene%3E factory() %7B%0A%09%09return _factory
 ;%0A%09%7D%0A
-%0A
 %7D%0A

Implement 'BigIntegerGene' test.