@@ -14745,51 +14745,6 @@ public String findTimeGaps() {
14745
14745
return times.findTimeGaps();
14746
14746
}
14747
14747
14748
- /**
14749
- * This runs all of the interactive or not interactive tests for this class.
14750
- *
14751
- * @param errorSB all caught exceptions are logged to this.
14752
- * @param interactive If true, this runs all of the interactive tests;
14753
- * otherwise, this runs all of the non-interactive
14754
- * tests.
14755
- * @param doSlowTestsToo If true, this runs the slow tests, too.
14756
- * @param firstTest The first test to be run (0...). Test numbers may
14757
- * change.
14758
- * @param lastTest The last test to be run, inclusive (0..., or -1 for
14759
- * the last test). Test numbers may change.
14760
- */
14761
- public static void test(StringBuilder errorSB, boolean interactive,
14762
- boolean doSlowTestsToo, int firstTest, int lastTest) {
14763
- if (lastTest < 0)
14764
- lastTest = interactive ? -1 : 0;
14765
- String msg = "\n^^^ EDDGrid.test(" + interactive + ") test=";
14766
-
14767
- for (int test = firstTest; test <= lastTest; test++) {
14768
- try {
14769
- long time = System.currentTimeMillis();
14770
- String2.log(msg + test);
14771
-
14772
- if (interactive) {
14773
- // if (test == 0) ...;
14774
-
14775
- } else {
14776
- if (test == 0)
14777
- testSaveAsImage();
14778
- }
14779
-
14780
- String2.log(msg + test + " finished successfully in "
14781
- + (System.currentTimeMillis() - time) + " ms.");
14782
- } catch (Throwable testThrowable) {
14783
- String eMsg = msg + test + " caught throwable:\n"
14784
- + MustBe.throwableToString(testThrowable);
14785
- errorSB.append(eMsg);
14786
- String2.log(eMsg);
14787
- if (interactive)
14788
- String2.pressEnterToContinue("");
14789
- }
14790
- }
14791
- }
14792
-
14793
14748
/**
14794
14749
* Test saveAsImage, specifically to make sure a transparent png that's
14795
14750
* partially outside of the range of the dataset still returns the image for
@@ -14916,4 +14871,50 @@ private static void testSaveAsImageVsExpected(EDDGrid eddGrid, String dir,
14916
14871
throw new RuntimeException(ex);
14917
14872
}
14918
14873
}
14874
+
14875
+ /**
14876
+ * This runs all of the interactive or not interactive tests for this class.
14877
+ *
14878
+ * @param errorSB all caught exceptions are logged to this.
14879
+ * @param interactive If true, this runs all of the interactive tests;
14880
+ * otherwise, this runs all of the non-interactive
14881
+ * tests.
14882
+ * @param doSlowTestsToo If true, this runs the slow tests, too.
14883
+ * @param firstTest The first test to be run (0...). Test numbers may
14884
+ * change.
14885
+ * @param lastTest The last test to be run, inclusive (0..., or -1 for
14886
+ * the last test). Test numbers may change.
14887
+ */
14888
+ public static void test(StringBuilder errorSB, boolean interactive,
14889
+ boolean doSlowTestsToo, int firstTest, int lastTest) {
14890
+ if (lastTest < 0)
14891
+ lastTest = interactive ? -1 : 0;
14892
+ String msg = "\n^^^ EDDGrid.test(" + interactive + ") test=";
14893
+
14894
+ for (int test = firstTest; test <= lastTest; test++) {
14895
+ try {
14896
+ long time = System.currentTimeMillis();
14897
+ String2.log(msg + test);
14898
+
14899
+ if (interactive) {
14900
+ // if (test == 0) ...;
14901
+
14902
+ } else {
14903
+ if (test == 0)
14904
+ testSaveAsImage();
14905
+ }
14906
+
14907
+ String2.log(msg + test + " finished successfully in "
14908
+ + (System.currentTimeMillis() - time) + " ms.");
14909
+ } catch (Throwable testThrowable) {
14910
+ String eMsg = msg + test + " caught throwable:\n"
14911
+ + MustBe.throwableToString(testThrowable);
14912
+ errorSB.append(eMsg);
14913
+ String2.log(eMsg);
14914
+ if (interactive)
14915
+ String2.pressEnterToContinue("");
14916
+ }
14917
+ }
14918
+ }
14919
+
14919
14920
}
0 commit comments