Skip to content

Commit

Permalink
update to util 4.2.0 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz authored May 17, 2024
1 parent 80121c2 commit 3825a78
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
<central-publishing-maven-plugin.version>0.4.0</central-publishing-maven-plugin.version>

<!-- dependency versions -->
<taskit.version>4.0.2</taskit.version>
<gcm.version>4.2.0</gcm.version>
<taskit.version>4.1.0-SNAPSHOT</taskit.version>
<gcm.version>4.2.1-SNAPSHOT</gcm.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<junit-jupiter-engine.version>5.10.2</junit-jupiter-engine.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

public class IT_NucleusTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testSimulationStateTranslator() {
String fileName = "simulationState.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(
Expand Down Expand Up @@ -57,7 +57,7 @@ public void testSimulationStateTranslator() {
public void testExperimentParameterDataTranslator() {
String fileName = "experimentParameterData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@

public class IT_GlobalPropertiesTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testGlobalPropertiesPluginDataIntegration() {
String fileName = "globalPropertiesPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

ProtobufTranslationEngine protobufTranslationEngine = ProtobufTranslationEngine.builder()
.addTranslator(GlobalPropertiesTranslator.getTranslator())
Expand Down Expand Up @@ -68,7 +68,7 @@ public void testGlobalPropertiesPluginDataIntegration() {
public void testGlobalPropertyReportPluginDataIntegration() {
String fileName = "propertyReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

ProtobufTranslationEngine protobufTranslationEngine = ProtobufTranslationEngine.builder()
.addTranslator(GlobalPropertiesTranslator.getTranslator())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@

public class IT_GroupsTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testGroupsTranslator() {
String fileName = "groupsPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

ProtobufTranslationEngine protobufTranslationEngine = ProtobufTranslationEngine.builder()
.addTranslator(GroupsTranslator.getTranslator())
Expand Down Expand Up @@ -99,7 +99,7 @@ public void testGroupsTranslator() {
public void testGroupPropertyReportTranslatorSpec() {
String fileName = "propertyReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

ProtobufTranslationEngine protobufTranslationEngine = ProtobufTranslationEngine.builder()
.addTranslator(GroupsTranslator.getTranslator())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@

public class IT_MaterialsTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testMaterialsTranslator() {
String fileName = "materialsPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -76,7 +76,7 @@ public void testMaterialsTranslator() {
public void testBatchStatusReportPluginDataTranslatorSpec() {
String fileName = "batchStatusReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -116,7 +116,7 @@ public void testBatchStatusReportPluginDataTranslatorSpec() {
public void testMaterialsProducerPropertyReportPluginDataTranslatorSpec() {
String fileName = "materialsProducerPropertyReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -155,7 +155,7 @@ public void testMaterialsProducerPropertyReportPluginDataTranslatorSpec() {
public void testMaterialsProducerResourceReportPluginDataTranslatorSpec() {
String fileName = "materialsProducerResourceReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -194,7 +194,7 @@ public void testMaterialsProducerResourceReportPluginDataTranslatorSpec() {
public void testStageReportPluginDataTranslatorSpec() {
String fileName = "stageReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

public class IT_PartitionsTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testGroupsTranslator() {
String fileName = "partitionsPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

public class IT_PeopleTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testPeopleTranslator() {
String fileName = "peoplePluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@

public class IT_PersonPropertiesTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testPersonPropertiesTranslator() {
String fileName = "personPropertiesPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -83,7 +83,7 @@ public void testPersonPropertiesTranslator() {
public void testPersonPropertyReportTranslatorSpec() {
String fileName = "propertyReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -135,7 +135,7 @@ public void testPersonPropertyReportTranslatorSpec() {
public void testPersonInteractionReportTranslatorSpec() {
String fileName = "interactionReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MT_PersonPropertiesTranslator {
long seed = 4684903523797799712L;
String times = "";
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");
ProtobufTranslationEngine protobufTranslationEngine;
TimeElapser timeElapser = new TimeElapser();
PersonPropertiesPluginData pluginData;
Expand All @@ -41,7 +41,7 @@ private MT_PersonPropertiesTranslator() {
private void createPluginData(int population) {
String fileName = "personPropertiesPluginData_mt-" + population + ".json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

this.translationController = TranslationController.builder()
.addTranslationEngine(this.protobufTranslationEngine)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

public class IT_PropertiesTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testPropertyValueMapTranslator() {
String fileName = "propertyDefinition.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@

public class IT_RegionsTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testRegionsTranslator() {
String fileName = "regionsPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -83,7 +83,7 @@ public void testRegionsTranslator() {
public void testRegionPropertyReportTranslatorSpec() {
String fileName = "propertyReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -134,7 +134,7 @@ public void testRegionPropertyReportTranslatorSpec() {
public void testRegionTransferReportTranslatorSpec() {
String fileName = "transferReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

public class IT_ReportsTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testReportLabelTranslatorSpec() {
String fileName = "reportLabel.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@

public class IT_ResourcesTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testResourcesTranslator() {
String fileName = "resourcesPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -87,7 +87,7 @@ public void testResourcesTranslator() {
public void testPersonResourceReportTranslatorSpec() {
String fileName = "personResourceReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -140,7 +140,7 @@ public void testPersonResourceReportTranslatorSpec() {
public void testResourcePropertyReportTranslatorSpec() {
String fileName = "resourcePropertyReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down Expand Up @@ -178,7 +178,7 @@ public void testResourcePropertyReportTranslatorSpec() {
public void testResourceReportTranslatorSpec() {
String fileName = "resourceReport.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

public class IT_StochasticsTranslator {
Path basePath = ResourceHelper.getResourceDir(this.getClass());
Path filePath = ResourceHelper.makeOutputDir(basePath, "test-output");
Path filePath = ResourceHelper.createDirectory(basePath, "test-output");

@Test
@UnitTestForCoverage
public void testStochasticsTranslator() {
String fileName = "stochasticsPluginData.json";

ResourceHelper.createOutputFile(filePath, fileName);
ResourceHelper.createFile(filePath, fileName);

TranslationController translatorController = TranslationController.builder()
.addTranslationEngine(ProtobufTranslationEngine.builder()
Expand Down

0 comments on commit 3825a78

Please sign in to comment.