/*
 * 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@gmail.com)
 */
package io.jenetics.internal.collection;

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

@@ -783,182 +783,916 @@
 n;%0A%0A
-/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmail.com%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @version !__version__!%0A * @since !__version__!%0A */%0Apublic class SerializationTest %7B
+import static java.lang.String.format;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.util.Random;%0A%0Aimport io.jenetics.util.IO;%0Aimport io.jenetics.util.MSeq;%0A%0A/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmail.com%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A */%0Apublic class SerializationTest %7B%0A%0A%0A%09public static void main(final String%5B%5D args) throws IOException %7B%0A%09%09final File baseDir = new File(%22jenetics/src/test/resources/io/jenetics/collection/serialization%22);%0A%09%09if (!baseDir.isDirectory() && !baseDir.mkdirs()) %7B%0A%09%09%09throw new IOException(%22Error while creating directory %22 + baseDir);%0A%09%09%7D%0A%0A%09%09for (int i = 0; i %3C 10; ++i) %7B%0A%09%09%09final Random random = new Random(i);%0A%09%09%09final MSeq%3CInteger%3E seq = MSeq.ofLength(i);%0A%09%09%09seq.fill(random::nextInt);%0A%0A%09%09%09IO.object.write(seq, new File(baseDir, format(%22MSeq%5B%25s%5D.dat%22, i)));%0A%09%09%09IO.object.write(seq.toISeq(), new File(baseDir, format(%22ISeq%5B%25s%5D.dat%22, i)));%0A%09%09%7D%0A%09%7D%0A%0A
 %0A%7D%0A

Write serialization test for Seq implementations.