This file contains hidden or 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
| // Generated class | |
| public final class SaberFactory { | |
| public static final SaberFactory INSTANCE = new SaberFactory(); | |
| private SaberFactory() { } | |
| public final void makeLightSaber() { /*...*/ } | |
| } |
This file contains hidden or 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
| package org.example | |
| fun makeLightSaber() { /*...*/ } |
This file contains hidden or 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
| package org.example | |
| // Generated class | |
| class AppKt { | |
| public static void makeLightSaber() { /*..*/ } | |
| } |
This file contains hidden or 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
| @file:JvmName("SaberUtils") | |
| package org.example | |
| fun makeLightSaber() { /*...*/ } |
This file contains hidden or 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
| // lightsaber.kt | |
| @file:JvmName("SaberUtils") | |
| @file:JvmMultifileClass | |
| package org.example | |
| fun makeLightSaber() { /*...*/ } |
This file contains hidden or 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
| // darksaber.kt | |
| @file:JvmName("SaberUtils") | |
| @file:JvmMultifileClass | |
| package org.example | |
| fun makeDarkSaber() { /*...*/ } |
This file contains hidden or 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
| object SaberFactory { | |
| @JvmStatic fun makeStaticSaber() { /*..*/ } | |
| fun makeNonStaticSaber() { /*..*/ } | |
| } |
This file contains hidden or 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
| object SaberUtils { | |
| fun makeLightSaber(powers: Int): LightSaber { | |
| return LightSaber(powers) | |
| } | |
| } |
This file contains hidden or 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
| @file:JvmName("SaberUtils") | |
| @file:JvmMultifileClass | |
| fun makeLightSaber(powers: Int): LightSaber { | |
| return LightSaber(powers) | |
| } |
This file contains hidden or 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
| @RunWith(PowerMockRunner::class) | |
| @PrepareForTest(Build.VERSION::class) | |
| class MyPresenterTest { | |
| @Test | |
| fun onOpenCameraButtonClick_postM() { | |
| Whitebox.setInternalState(Build.VERSION::class.java, "SDK_INT", 23) | |
| // Verify flow request Runtime Permissions | |
| // ... | |
| } |