-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SkipNul, remove additional unique event and make application cache th…
…read safe
- Loading branch information
Konrad Dysput
committed
Nov 7, 2024
1 parent
330769b
commit ef6cd02
Showing
4 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
backtrace-library/src/androidTest/java/backtraceio/library/ApplicationCacheTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package backtraceio.library; | ||
|
||
import android.content.Context; | ||
|
||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
import androidx.test.platform.app.InstrumentationRegistry; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import backtraceio.library.common.ApplicationMetadataCache; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class ApplicationCacheTest { | ||
private Context context; | ||
|
||
@Before | ||
public void setUp() { | ||
context = InstrumentationRegistry.getInstrumentation().getContext(); | ||
// prepare instance | ||
ApplicationMetadataCache.getInstance(context); | ||
} | ||
|
||
@Test | ||
public void shouldCorrectlyRetrieveApplicationName() { | ||
ApplicationMetadataCache cache = ApplicationMetadataCache.getInstance(context); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters