/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package etomica.graph;

import java.util.Arrays;

import etomica.graph.iterators.CartesianPermutator;
import etomica.graph.model.Permutator;

import junit.framework.TestCase;

public class CartesianPermutatorTest extends TestCase {

  public void testPermutator1x1x2x1() {

    Permutator p = new CartesianPermutator(new int[] { 1, 1 }, new int[] { 2, 1 });
    int count = 0;
    while (p.hasNext()) {
      byte[] b = p.next();
      count++;
      System.out.println(String.format("%d :: %s", count, Arrays.toString(b)));
    }
    System.out.println();
  }

  public void testPermutator1x1x2x2() {

    Permutator p = new CartesianPermutator(new int[] { 1, 1 }, new int[] { 2, 2 });
    int count = 0;
    while (p.hasNext()) {
      byte[] b = p.next();
      count++;
      System.out.println(String.format("%d :: %s", count, Arrays.toString(b)));
    }
    System.out.println();
  }

  public void testPermutator1x1x3x3() {

    Permutator p = new CartesianPermutator(new int[] { 1, 1 }, new int[] { 3, 3 });
    int count = 0;
    while (p.hasNext()) {
      byte[] b = p.next();
      count++;
      System.out.println(String.format("%d :: %s", count, Arrays.toString(b)));
    }
    System.out.println();
  }
}
@@ -352,34 +352,85 @@
 ort 
+org.
 junit.
-framework.TestCase;%0A
+jupiter.api.Test;%0Aimport org.junit.jupiter.api.Disabled;%0A%0A@Disabled
 %0Apub
@@ -467,27 +467,18 @@
 est 
-extends TestCase %7B%0A
+%7B%0A%0A  @Test
 %0A  p
@@ -795,32 +795,40 @@
 println();%0A  %7D%0A%0A
+  @Test%0A
   public void te
@@ -1140,16 +1140,24 @@
 );%0A  %7D%0A%0A
+  @Test%0A
   public
@@ -1477,8 +1477,9 @@
 );%0A  %7D%0A%7D
+%0A

Migrate CartestianPermutatorTest to junit5 and disable it