Skip to content

Commit

Permalink
Fix publish step sourcesJar
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Mar 20, 2024
1 parent 45c36f7 commit f0b9527
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @version 2.0.3
* @since 1.0.0
*/
class TestUtils {
class AndroidTestUtils {

static final String AUTHORITY = "de.cyface.persistence.test.provider";

Expand Down Expand Up @@ -87,7 +87,7 @@ static void read(final ContentResolver mockResolver, final Uri contentUri, final
List<ContentValues> fixture = new ArrayList<>();
fixture.add(entry);
Validate.notNull(cursor);
TestUtils.compareCursorWithValues(cursor, fixture);
AndroidTestUtils.compareCursorWithValues(cursor, fixture);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.cyface.persistence;

import static de.cyface.persistence.TestUtils.AUTHORITY;
import static de.cyface.persistence.AndroidTestUtils.AUTHORITY;
import static de.cyface.persistence.Utils.getGeoLocationsUri;
import static de.cyface.utils.CursorIsNullException.softCatchNullCursor;
import static org.hamcrest.CoreMatchers.equalTo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package de.cyface.persistence;

import static de.cyface.persistence.TestUtils.AUTHORITY;
import static de.cyface.persistence.AndroidTestUtils.AUTHORITY;
import static de.cyface.persistence.Utils.getEventUri;
import static de.cyface.persistence.Utils.getGeoLocationsUri;
import static de.cyface.persistence.Utils.getMeasurementUri;
Expand Down Expand Up @@ -96,9 +96,9 @@ public void tearDown() {
public void testCascadingDeleteOneMeasurement() {

// Create measurement with data
final long identifier = TestUtils.create(resolver, getMeasurementUri(AUTHORITY), fixtureMeasurement);
final long identifier = AndroidTestUtils.create(resolver, getMeasurementUri(AUTHORITY), fixtureMeasurement);
final ContentValues fixtureGeoLocation = geoLocationContentValues(identifier);
TestUtils.create(resolver, getGeoLocationsUri(AUTHORITY), fixtureGeoLocation);
AndroidTestUtils.create(resolver, getGeoLocationsUri(AUTHORITY), fixtureGeoLocation);

// Test load the create measurement
try (final Cursor measurementCursor = resolver.query(getMeasurementUri(AUTHORITY), null,
Expand All @@ -111,7 +111,7 @@ public void testCascadingDeleteOneMeasurement() {
// Ensure deletion of measurement with data works
final int rowsDeleted = resolver.delete(getMeasurementUri(AUTHORITY), null, null);
assertThat("Delete was unsuccessful for uri " + getMeasurementUri(AUTHORITY), 2, is(rowsDeleted));
assertThat(TestUtils.count(resolver, getGeoLocationsUri(AUTHORITY)), is(0));
assertThat(AndroidTestUtils.count(resolver, getGeoLocationsUri(AUTHORITY)), is(0));
}

/**
Expand All @@ -122,9 +122,9 @@ public void testCascadingDeleteMultipleMeasurements() {

// Create measurements with data
for (int i = 0; i < 2; i++) {
final long identifier = TestUtils.create(resolver, getMeasurementUri(AUTHORITY), fixtureMeasurement);
final long identifier = AndroidTestUtils.create(resolver, getMeasurementUri(AUTHORITY), fixtureMeasurement);
final ContentValues fixtureGeoLocation = geoLocationContentValues(identifier);
TestUtils.create(resolver, getGeoLocationsUri(AUTHORITY), fixtureGeoLocation);
AndroidTestUtils.create(resolver, getGeoLocationsUri(AUTHORITY), fixtureGeoLocation);
}

// Ensure deletion of measurements with data works
Expand Down

0 comments on commit f0b9527

Please sign in to comment.