Skip to content

Commit cacdaf3

Browse files
Merge pull request #630 from kennethshackleton/package-local-test
Address visibility in SQLiteOpenHelperJavaTest.java
2 parents 10e9051 + 2f57b90 commit cacdaf3

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

selekt-android/src/test/java/com/bloomberg/selekt/android/SQLiteDatabaseJavaTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import org.junit.jupiter.api.BeforeEach;
3636
import org.junit.jupiter.api.Test;
3737

38-
public final class SQLiteDatabaseJavaTest {
38+
final class SQLiteDatabaseJavaTest {
3939
private final Context targetContext = mock(Context.class);
4040
private SQLiteDatabase database = null;
4141

@@ -47,16 +47,16 @@ public final class SQLiteDatabaseJavaTest {
4747
0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42
4848
};
4949

50-
public SQLiteDatabaseJavaTest() throws IOException {}
50+
SQLiteDatabaseJavaTest() throws IOException {}
5151

5252
@BeforeEach
53-
public void setUp() {
53+
void setUp() {
5454
file.deleteOnExit();
5555
when(targetContext.getDatabasePath(anyString())).thenReturn(file);
5656
}
5757

5858
@AfterEach
59-
public void tearDown() {
59+
void tearDown() {
6060
final SQLiteDatabase database = this.database;
6161
if (database != null) {
6262
try {
@@ -71,7 +71,7 @@ public void tearDown() {
7171
}
7272

7373
@Test
74-
public void creation() {
74+
void creation() {
7575
database = SQLiteDatabase.openOrCreateDatabase(
7676
targetContext.getDatabasePath("sample"),
7777
SQLiteJournalMode.WAL.databaseConfiguration,

selekt-android/src/test/java/com/bloomberg/selekt/android/SQLiteOpenHelperJavaTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import org.junit.jupiter.api.BeforeEach;
3737
import org.junit.jupiter.api.Test;
3838

39-
public final class SQLiteOpenHelperJavaTest {
39+
final class SQLiteOpenHelperJavaTest {
4040
private final File file = File.createTempFile("test-java-open-helper", ".db");
4141
private final byte[] key = new byte[] {
4242
0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42,
@@ -48,16 +48,16 @@ public final class SQLiteOpenHelperJavaTest {
4848
private final Context targetContext = mock(Context.class);
4949
private SQLiteOpenHelper databaseHelper = null;
5050

51-
public SQLiteOpenHelperJavaTest() throws IOException {}
51+
SQLiteOpenHelperJavaTest() throws IOException {}
5252

5353
@BeforeEach
54-
public void setUp() {
54+
void setUp() {
5555
file.deleteOnExit();
5656
when(targetContext.getDatabasePath(anyString())).thenReturn(file);
5757
}
5858

5959
@AfterEach
60-
public void tearDown() {
60+
void tearDown() {
6161
final SQLiteOpenHelper helper = databaseHelper;
6262
if (helper != null) {
6363
final SQLiteDatabase database = helper.getWritableDatabase();
@@ -73,7 +73,7 @@ public void tearDown() {
7373
}
7474

7575
@Test
76-
public void creation() {
76+
void creation() {
7777
final ISQLiteOpenHelper.Callback callback = mock(ISQLiteOpenHelper.Callback.class);
7878
databaseHelper = new SQLiteOpenHelper(
7979
targetContext,
@@ -90,7 +90,7 @@ public void creation() {
9090
}
9191

9292
@Test
93-
public void createWithLoggingEnabled() {
93+
void createWithLoggingEnabled() {
9494
final ISQLiteOpenHelper.Callback callback = mock(ISQLiteOpenHelper.Callback.class);
9595
databaseHelper = new SQLiteOpenHelper(
9696
targetContext,

0 commit comments

Comments
 (0)