/*
 * 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.jenetics.stat;

/**
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @version !__version__!
 * @since !__version__!
 */
public class LongSummaryTest {
}

@@ -766,177 +766,762 @@
 t;%0A%0A
-/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @version !__version__!%0A * @since !__version__!%0A */%0Apublic class LongSummaryTest %7B
+import java.util.LongSummaryStatistics;%0Aimport java.util.Random;%0Aimport java.util.stream.IntStream;%0A%0Aimport org.testng.annotations.Test;%0A%0Aimport org.jenetics.util.Factory;%0Aimport org.jenetics.util.ObjectTester;%0Aimport org.jenetics.util.RandomRegistry;%0A%0A/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A */%0A@Test%0Apublic class LongSummaryTest extends ObjectTester%3CLongSummary%3E %7B%0A%0A%09@Override%0A%09protected Factory%3CLongSummary%3E factory() %7B%0A%09%09return () -%3E %7B%0A%09%09%09final Random random = RandomRegistry.getRandom();%0A%0A%09%09%09final LongSummaryStatistics statistics = new LongSummaryStatistics();%0A%09%09%09IntStream.range(0, 100)%0A%09%09%09%09.map(i -%3E random.nextInt(1_000_000))%0A%09%09%09%09.forEach(statistics);%0A%0A%09%09%09return LongSummary.of(statistics);%0A%09%09%7D;%0A%09%7D%0A
 %0A%7D%0A

Add 'LongSummary' unit-test.