Skip to content

Commit

Permalink
(junit) Repackage JUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
squaregoldfish committed Jul 5, 2024
1 parent 2fb1b81 commit 4f59edc
Show file tree
Hide file tree
Showing 77 changed files with 150 additions and 294 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

import static org.mockito.ArgumentMatchers.anyBoolean;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

import javax.faces.context.FacesContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

import java.time.LocalDateTime;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

/**
* An {@link Exception} that a test can throw if it encounters an error while
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

import java.io.File;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

/**
* Exception class to wrap errors encountered while setting up test sets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.TestBase;
package uk.ac.exeter.QuinCe.TestBase;

import java.io.BufferedReader;
import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.User;
package uk.ac.exeter.QuinCe.User;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -8,11 +8,9 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

import junit.uk.ac.exeter.QuinCe.TestBase.TestLineException;
import junit.uk.ac.exeter.QuinCe.TestBase.TestSetLine;
import junit.uk.ac.exeter.QuinCe.TestBase.TestSetTest;
import uk.ac.exeter.QuinCe.User.User;
import uk.ac.exeter.QuinCe.User.UserDB;
import uk.ac.exeter.QuinCe.TestBase.TestLineException;
import uk.ac.exeter.QuinCe.TestBase.TestSetLine;
import uk.ac.exeter.QuinCe.TestBase.TestSetTest;

/**
* Complex combination tests for the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.User;
package uk.ac.exeter.QuinCe.User;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
Expand All @@ -12,11 +12,7 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.User.NoSuchUserException;
import uk.ac.exeter.QuinCe.User.User;
import uk.ac.exeter.QuinCe.User.UserDB;
import uk.ac.exeter.QuinCe.User.UserPreferences;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.utils.MissingParamException;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset;
package uk.ac.exeter.QuinCe.data.Dataset;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.ColumnHeading;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;

public class ColumnHeadingTest extends BaseTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset;
package uk.ac.exeter.QuinCe.data.Dataset;

import static org.junit.jupiter.api.Assertions.assertTrue;

Expand All @@ -11,12 +11,8 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction.ControsPco2ReducerTest;
import uk.ac.exeter.QuinCe.data.Dataset.ControsPco2MeasurementLocator;
import uk.ac.exeter.QuinCe.data.Dataset.DataSet;
import uk.ac.exeter.QuinCe.data.Dataset.DataSetDB;
import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.ControsPco2ReducerTest;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.InstrumentDB;
import uk.ac.exeter.QuinCe.web.system.ResourceManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
Expand All @@ -13,9 +13,8 @@
import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.Mockito;

import junit.uk.ac.exeter.QuinCe.TestBase.TestSetLine;
import junit.uk.ac.exeter.QuinCe.TestBase.TestSetTest;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.Calculators;
import uk.ac.exeter.QuinCe.TestBase.TestSetLine;
import uk.ac.exeter.QuinCe.TestBase.TestSetTest;

@TestInstance(Lifecycle.PER_CLASS)
public class CalculatorsInterpolateMapEntryBigDecimalTest extends TestSetTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
Expand All @@ -7,8 +7,7 @@

import org.junit.jupiter.api.Test;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.Calculators;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;

public class CalculatorsTest extends BaseTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -17,8 +17,6 @@
import uk.ac.exeter.QuinCe.data.Dataset.DataSetDataDB;
import uk.ac.exeter.QuinCe.data.Dataset.DatasetMeasurements;
import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.ControsPco2Reducer;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.InstrumentDB;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand All @@ -17,11 +17,7 @@
import org.junit.jupiter.params.provider.CsvSource;
import org.mockito.Mockito;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.CalculationParameter;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReducer;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReducerFactory;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionException;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.InstrumentDB;
import uk.ac.exeter.QuinCe.data.Instrument.InstrumentException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand All @@ -9,7 +9,7 @@

import org.junit.jupiter.api.BeforeEach;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.QC.Flag;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertTrue;

Expand All @@ -11,10 +11,9 @@
import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.Mockito;

import junit.uk.ac.exeter.QuinCe.TestBase.TestSetLine;
import junit.uk.ac.exeter.QuinCe.TestBase.TestSetTest;
import uk.ac.exeter.QuinCe.TestBase.TestSetLine;
import uk.ac.exeter.QuinCe.TestBase.TestSetTest;
import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
Expand All @@ -12,10 +12,8 @@
import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.Mockito;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionException;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.QC.Flag;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand All @@ -14,8 +14,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.NoReductionReducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.SensorType;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -11,8 +11,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.ProOceanusAtmosphericCO2Reducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -11,8 +11,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.ProOceanusMarineCO2Reducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
Expand All @@ -12,9 +12,7 @@
import org.apache.commons.lang3.NotImplementedException;
import org.junit.jupiter.api.Test;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionException;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.ReadOnlyDataReductionRecord;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.QC.Flag;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -15,9 +15,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.UnderwayAtmospheric12_13Pco2Reducer;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.UnderwayMarine12_13Pco2Reducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;
import uk.ac.exeter.QuinCe.web.system.ResourceManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -11,8 +11,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.UnderwayAtmosphericPco2Reducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -15,8 +15,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.UnderwayMarine12_13Pco2Reducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;
import uk.ac.exeter.QuinCe.web.system.ResourceManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset.DataReduction;
package uk.ac.exeter.QuinCe.data.Dataset.DataReduction;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -11,8 +11,6 @@

import uk.ac.exeter.QuinCe.data.Dataset.Measurement;
import uk.ac.exeter.QuinCe.data.Dataset.MeasurementValue;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.DataReductionRecord;
import uk.ac.exeter.QuinCe.data.Dataset.DataReduction.UnderwayMarinePco2Reducer;
import uk.ac.exeter.QuinCe.data.Instrument.Instrument;
import uk.ac.exeter.QuinCe.data.Instrument.SensorDefinition.Variable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package junit.uk.ac.exeter.QuinCe.data.Dataset;
package uk.ac.exeter.QuinCe.data.Dataset;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
Expand All @@ -14,12 +14,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import junit.uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.DataSetDataDB;
import uk.ac.exeter.QuinCe.data.Dataset.DatasetSensorValues;
import uk.ac.exeter.QuinCe.data.Dataset.InvalidSensorValueException;
import uk.ac.exeter.QuinCe.data.Dataset.SensorValue;
import uk.ac.exeter.QuinCe.data.Dataset.SensorValuesList;
import uk.ac.exeter.QuinCe.TestBase.BaseTest;
import uk.ac.exeter.QuinCe.data.Dataset.QC.Flag;
import uk.ac.exeter.QuinCe.data.Dataset.QC.RoutineFlag;
import uk.ac.exeter.QuinCe.data.Dataset.QC.SensorValues.AutoQCResult;
Expand Down
Loading

0 comments on commit 4f59edc

Please sign in to comment.