Skip to content

Commit

Permalink
update helpers in ExternalEventTests.java to be protected
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-super committed Oct 15, 2024
1 parent d99cf59 commit 32de864
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void compareLists(String[] expected, ResultSet res, String key) throws SQLExcept
}
}

public void insertExternalEventType(String event_type_name) throws SQLException {
protected void insertExternalEventType(String event_type_name) throws SQLException {
try(final var statement = connection.createStatement()) {
// create the event type
statement.executeUpdate(
Expand All @@ -106,7 +106,7 @@ public void insertExternalEventType(String event_type_name) throws SQLException
}
}

public void insertExternalSourceType(String source_type_name) throws SQLException {
protected void insertExternalSourceType(String source_type_name) throws SQLException {
try(final var statement = connection.createStatement()) {
// create the source type
statement.executeUpdate(
Expand All @@ -120,7 +120,7 @@ public void insertExternalSourceType(String source_type_name) throws SQLExceptio
}
}

public void insertDerivationGroup(String derivation_group_name, String source_type_name) throws SQLException {
protected void insertDerivationGroup(String derivation_group_name, String source_type_name) throws SQLException {
try(final var statement = connection.createStatement()) {
// create the derivation group
statement.executeUpdate(
Expand All @@ -134,7 +134,7 @@ public void insertDerivationGroup(String derivation_group_name, String source_ty
}
}

public void insertExternalSource(ExternalSource externalSource) throws SQLException {
protected void insertExternalSource(ExternalSource externalSource) throws SQLException {
try(final var statement = connection.createStatement()) {
System.out.println("STARTING " + externalSource);
// create the source
Expand All @@ -159,7 +159,7 @@ public void insertExternalSource(ExternalSource externalSource) throws SQLExcept
}
}

public void insertExternalEvent(ExternalEvent externalEvent) throws SQLException {
protected void insertExternalEvent(ExternalEvent externalEvent) throws SQLException {
try(final var statement = connection.createStatement()) {
// create the event
statement.executeUpdate(
Expand All @@ -181,7 +181,7 @@ public void insertExternalEvent(ExternalEvent externalEvent) throws SQLException
}
}

public void associateDerivationGroupWithPlan(int planId, String derivationGroupName) throws SQLException {
protected void associateDerivationGroupWithPlan(int planId, String derivationGroupName) throws SQLException {
try(final var statement = connection.createStatement()) {
// create the event type
statement.executeUpdate(
Expand All @@ -198,7 +198,7 @@ public void associateDerivationGroupWithPlan(int planId, String derivationGroupN
/**
* Quick external event creator, leveraging constants from a provided source object (source).
*/
public ExternalEvent createEvent(String key, String start_time, String duration, ExternalSource source) {
protected ExternalEvent createEvent(String key, String start_time, String duration, ExternalSource source) {
return new ExternalEvent(
key,
et,
Expand All @@ -220,7 +220,7 @@ public ExternalEvent createEvent(String key, String start_time, String duration,
*
* Data here is based on the SSMO-MPS/mission-data-sandbox/derivation_test examples.
*/
public void upload_source(String dg) throws SQLException {
protected void upload_source(String dg) throws SQLException {
// First, define the sources.
ExternalSource sourceOne = new ExternalSource(
"Derivation_Test_00.json",
Expand Down Expand Up @@ -307,7 +307,7 @@ public void upload_source(String dg) throws SQLException {
insertExternalEvent(nine);
}

void insertStandardTypes() throws SQLException {
protected void insertStandardTypes() throws SQLException {
// insert external event type
insertExternalEventType(et);

Expand Down

0 comments on commit 32de864

Please sign in to comment.