mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 18:20:14 +00:00
trying to make simulator tests run; got a few more green, but still many tests fail; will need to temporarily disable simulator tests in maven build
This commit is contained in:
1 parent
275a667235
commit
534a8ebc9b
51 files changed
+17
-17
No files matched your search
+5
-5
@@ -27,11 +27,11 @@ public class PolarDiagramCSVTest {
|
||||
private static double BEARING_STEP = 10.0;
|
||||
private static double VELOCITY_STEP = 1.0;
|
||||
|
||||
private static String POLAR_DIAGRAM_49_CSV_FILE_PATH = "resources/PolarDiagram49.csv";
|
||||
private static String POLAR_DIAGRAM_49_BETHWAITE_CSV_FILE_PATH = "resources/PolarDiagram49Bethwaite.csv";
|
||||
private static String POLAR_DIAGRAM_49_ORC_CSV_FILE_PATH = "resources/PolarDiagram49ORC.csv";
|
||||
private static String POLAR_DIAGRAM_49_STG_CSV_FILE_PATH = "resources/PolarDiagram49STG.csv";
|
||||
private static String POLAR_DIAGRAM_505_STG_CSV_FILE_PATH = "resources/PolarDiagram505STG.csv";
|
||||
private static String POLAR_DIAGRAM_49_CSV_FILE_PATH = "PolarDiagram49.csv";
|
||||
private static String POLAR_DIAGRAM_49_BETHWAITE_CSV_FILE_PATH = "PolarDiagram49Bethwaite.csv";
|
||||
private static String POLAR_DIAGRAM_49_ORC_CSV_FILE_PATH = "PolarDiagram49ORC.csv";
|
||||
private static String POLAR_DIAGRAM_49_STG_CSV_FILE_PATH = "PolarDiagram49STG.csv";
|
||||
private static String POLAR_DIAGRAM_505_STG_CSV_FILE_PATH = "PolarDiagram505STG.csv";
|
||||
|
||||
@Test
|
||||
public void test_PolarDiagram49_internals() throws IOException {
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="lib" path="lib/ssj.jar"/>
|
||||
<classpathentry kind="src" path="resources"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
@@ -1,5 +1,7 @@
|
||||
source.. = src/
|
||||
source.. = src/,\
|
||||
resources/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
lib/ssj.jar
|
||||
lib/ssj.jar,\
|
||||
resources/
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,5 @@
|
||||
49er,4.995,PolarDiagram49.csv
|
||||
49er Bethwaite,4.876,PolarDiagram49Bethwaite.csv
|
||||
49er ORC,4.995,PolarDiagram49ORC.csv
|
||||
49er STG,4.876,PolarDiagram49STG.csv
|
||||
505 STG,5.05,PolarDiagram505STG.csv
|
||||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-4
@@ -19,8 +19,8 @@ public enum ConfigurationManager {
|
||||
private static final String ENVIRONMENT_VARIABLE_NAME = "STG_CONFIG";
|
||||
private static final String ENVIRONMENT_RACES_VARIABLE_NAME = "STG_CONFIG";
|
||||
|
||||
private static final String CONFIG_FILE_LOCATION = "resources/STG_configuration.csv";
|
||||
private static final String RACES_FILE_LOCATION = "resources/races.csv";
|
||||
private static final String CONFIG_FILE_LOCATION = "STG_configuration.csv";
|
||||
private static final String RACES_FILE_LOCATION = "races.csv";
|
||||
|
||||
private List<BoatClassProperties> _boatClassesInfo = new ArrayList<BoatClassProperties>();
|
||||
private List<RaceProperties> _racesInfo = new ArrayList<RaceProperties>();
|
||||
@@ -29,9 +29,7 @@ public enum ConfigurationManager {
|
||||
private String errorMessage = "";
|
||||
|
||||
private ConfigurationManager() {
|
||||
|
||||
this.initFromResources(ConfigurationManager.ENVIRONMENT_VARIABLE_NAME, ConfigurationManager.CONFIG_FILE_LOCATION, true);
|
||||
|
||||
this.initFromResources(ConfigurationManager.ENVIRONMENT_RACES_VARIABLE_NAME, ConfigurationManager.RACES_FILE_LOCATION, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ public class PolarDiagramCSV extends PolarDiagramBase {
|
||||
private static final long serialVersionUID = -9219705955440602679L;
|
||||
|
||||
public PolarDiagramCSV(String inputFile) throws IOException {
|
||||
|
||||
ClassLoader cl = this.getClass().getClassLoader();
|
||||
InputStream csvFile = cl.getResourceAsStream(inputFile);
|
||||
InputStreamReader isr = new InputStreamReader(csvFile);
|
||||
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
49er,4.995,resources/PolarDiagram49.csv
|
||||
49er Bethwaite,4.876,resources/PolarDiagram49Bethwaite.csv
|
||||
49er ORC,4.995,resources/PolarDiagram49ORC.csv
|
||||
49er STG,4.876,resources/PolarDiagram49STG.csv
|
||||
505 STG,5.05,resources/PolarDiagram505STG.csv
|
||||
|
Reference in new issue
Block a user