From 2126ec3c9b8ffe100fc6b89b119396742d568ff6 Mon Sep 17 00:00:00 2001 From: Davidodari Date: Mon, 11 May 2020 18:26:15 +0300 Subject: [PATCH] apply consistent code style --- .../com/github/odaridavid/designpatterns/base/BaseActivity.kt | 2 +- .../odaridavid/designpatterns/helpers/CodeSamplePath.kt | 2 +- .../github/odaridavid/designpatterns/helpers/Extensions.kt | 2 +- .../odaridavid/designpatterns/helpers/NavigationUtils.kt | 2 +- .../github/odaridavid/designpatterns/models/DesignPattern.kt | 4 ++-- .../com/github/odaridavid/designpatterns/ui/AboutActivity.kt | 2 +- .../designpatterns/ui/DesignPatternDetailActivity.kt | 2 +- .../odaridavid/designpatterns/ui/DesignPatternsAdapter.kt | 2 +- .../odaridavid/designpatterns/ui/GridSpaceItemDecoration.kt | 2 +- .../github/odaridavid/designpatterns/ui/LibrariesAdapter.kt | 2 +- .../com/github/odaridavid/designpatterns/ui/MainActivity.kt | 2 +- .../odaridavid/designpatterns/AdapterPatternUnitTest.kt | 2 +- .../github/odaridavid/designpatterns/BridgePatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/BuilderPatternUnitTest.kt | 2 +- .../designpatterns/ChainOfResponsibilityPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/CommandPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/CompositePatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/DecoratorPatternUnitTest.kt | 2 +- .../github/odaridavid/designpatterns/FacadePatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/FactoryPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/FlyweightPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/IteratorPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/MediatorPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/MementoPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/ObserverPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/PrototypePatternUnitTest.kt | 2 +- .../github/odaridavid/designpatterns/ProxyPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/SingletonPatternUnitTest.kt | 2 +- .../github/odaridavid/designpatterns/StatePatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/StrategyPatternUnitTest.kt | 2 +- .../odaridavid/designpatterns/TemplateMethodUnitTest.kt | 2 +- .../odaridavid/designpatterns/VisitorPatternUnitTest.kt | 2 +- 32 files changed, 33 insertions(+), 33 deletions(-) diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/base/BaseActivity.kt b/app/src/main/java/com/github/odaridavid/designpatterns/base/BaseActivity.kt index 9e03cb1..7730496 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/base/BaseActivity.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/base/BaseActivity.kt @@ -13,7 +13,7 @@ import com.github.odaridavid.designpatterns.helpers.SdkUtils.versionFrom import com.github.odaridavid.designpatterns.helpers.SdkUtils.versionUntil import com.github.odaridavid.designpatterns.helpers.ThemeUtils -abstract class BaseActivity : AppCompatActivity(), ISystemThemeChangeListener { +internal abstract class BaseActivity : AppCompatActivity(), ISystemThemeChangeListener { private val powerManager: PowerManager by lazy { getSystemService(Context.POWER_SERVICE) as PowerManager diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/helpers/CodeSamplePath.kt b/app/src/main/java/com/github/odaridavid/designpatterns/helpers/CodeSamplePath.kt index 5c6ce69..b41808d 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/helpers/CodeSamplePath.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/helpers/CodeSamplePath.kt @@ -17,7 +17,7 @@ const val BASE_PATH = "file:///android_asset" const val LIGHT_KOTLIN_CSS_PATH = "$BASE_PATH/kotlin.css" const val DARK_KOTLIN_CSS_PATH = "$BASE_PATH/dark_kotlin.css" -object CodeSample { +internal object CodeSample { const val ABSTRACT_FACTORY = "$BASE_PATH/abstract_factory.md" const val ADAPTER = "$BASE_PATH/adapter.md" const val BRIDGE = "$BASE_PATH/bridge.md" diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/helpers/Extensions.kt b/app/src/main/java/com/github/odaridavid/designpatterns/helpers/Extensions.kt index 2e470ad..6a7fdaf 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/helpers/Extensions.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/helpers/Extensions.kt @@ -27,7 +27,7 @@ import com.github.odaridavid.designpatterns.helpers.SdkUtils.versionUntil import us.feras.mdv.MarkdownView -inline fun Activity.navigateTo(noinline intentExtras: ((Intent) -> Unit)? = null) { +internal inline fun Activity.navigateTo(noinline intentExtras: ((Intent) -> Unit)? = null) { val intent = Intent(this, T::class.java) intentExtras?.run { intentExtras(intent) diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/helpers/NavigationUtils.kt b/app/src/main/java/com/github/odaridavid/designpatterns/helpers/NavigationUtils.kt index 5db918a..3cc08f3 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/helpers/NavigationUtils.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/helpers/NavigationUtils.kt @@ -14,6 +14,6 @@ package com.github.odaridavid.designpatterns.helpers -object NavigationUtils { +internal object NavigationUtils { const val KEY_DESIGN_PATTERN = "design_pattern" } \ No newline at end of file diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/models/DesignPattern.kt b/app/src/main/java/com/github/odaridavid/designpatterns/models/DesignPattern.kt index 2a999b4..b9bcea5 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/models/DesignPattern.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/models/DesignPattern.kt @@ -20,13 +20,13 @@ import com.github.odaridavid.designpatterns.helpers.CodeSample import kotlinx.android.parcel.Parcelize @Parcelize -data class DesignPattern( +internal data class DesignPattern( @StringRes val name: Int, @StringRes val description: Int, val codeSample: String ) : Parcelable -fun generateDesignPatterns(): List { +internal fun generateDesignPatterns(): List { return listOf( DesignPattern( R.string.title_adapter, diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/ui/AboutActivity.kt b/app/src/main/java/com/github/odaridavid/designpatterns/ui/AboutActivity.kt index 6956f84..f351bb9 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/ui/AboutActivity.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/ui/AboutActivity.kt @@ -13,7 +13,7 @@ import com.github.odaridavid.designpatterns.helpers.checkUrlScheme import com.mikepenz.aboutlibraries.Libs import jp.wasabeef.recyclerview.adapters.ScaleInAnimationAdapter -class AboutActivity : BaseActivity() { +internal class AboutActivity : BaseActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternDetailActivity.kt b/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternDetailActivity.kt index 504b62d..ce7b7c9 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternDetailActivity.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternDetailActivity.kt @@ -14,7 +14,7 @@ import com.github.odaridavid.designpatterns.helpers.NavigationUtils import com.github.odaridavid.designpatterns.helpers.loadWithKotlinCss import com.github.odaridavid.designpatterns.models.DesignPattern -class DesignPatternDetailActivity : BaseActivity() { +internal class DesignPatternDetailActivity : BaseActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternsAdapter.kt b/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternsAdapter.kt index 3711873..768e06d 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternsAdapter.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/ui/DesignPatternsAdapter.kt @@ -23,7 +23,7 @@ import com.github.odaridavid.designpatterns.databinding.ItemDesignPatternBinding import com.github.odaridavid.designpatterns.models.DesignPattern -class DesignPatternsAdapter(val onClick: (DesignPattern) -> Unit) : +internal class DesignPatternsAdapter(val onClick: (DesignPattern) -> Unit) : ListAdapter(DiffUtil) { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): DesignPatternViewHolder { diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/ui/GridSpaceItemDecoration.kt b/app/src/main/java/com/github/odaridavid/designpatterns/ui/GridSpaceItemDecoration.kt index 9efb4ac..d9f9aa9 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/ui/GridSpaceItemDecoration.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/ui/GridSpaceItemDecoration.kt @@ -18,7 +18,7 @@ import android.view.View import androidx.recyclerview.widget.RecyclerView -class GridSpaceItemDecoration(var spaceInPx: Int) : RecyclerView.ItemDecoration() { +internal class GridSpaceItemDecoration(var spaceInPx: Int) : RecyclerView.ItemDecoration() { override fun getItemOffsets( outRect: Rect, diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/ui/LibrariesAdapter.kt b/app/src/main/java/com/github/odaridavid/designpatterns/ui/LibrariesAdapter.kt index 9921b43..22350a5 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/ui/LibrariesAdapter.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/ui/LibrariesAdapter.kt @@ -23,7 +23,7 @@ import com.github.odaridavid.designpatterns.databinding.ItemLibraryBinding import com.mikepenz.aboutlibraries.entity.Library -class LibrariesAdapter(val onClick: (String) -> Unit) : +internal class LibrariesAdapter(val onClick: (String) -> Unit) : ListAdapter(DiffUtil) { override fun onBindViewHolder(holder: LicenseViewHolder, position: Int) { diff --git a/app/src/main/java/com/github/odaridavid/designpatterns/ui/MainActivity.kt b/app/src/main/java/com/github/odaridavid/designpatterns/ui/MainActivity.kt index 27cf9cb..aee5846 100644 --- a/app/src/main/java/com/github/odaridavid/designpatterns/ui/MainActivity.kt +++ b/app/src/main/java/com/github/odaridavid/designpatterns/ui/MainActivity.kt @@ -16,7 +16,7 @@ import com.github.odaridavid.designpatterns.models.generateDesignPatterns import com.google.android.play.core.install.model.ActivityResult import jp.wasabeef.recyclerview.adapters.ScaleInAnimationAdapter -class MainActivity : BaseActivity() { +internal class MainActivity : BaseActivity() { private lateinit var binding: ActivityMainBinding diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/AdapterPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/AdapterPatternUnitTest.kt index 78ae390..04d38a5 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/AdapterPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/AdapterPatternUnitTest.kt @@ -18,7 +18,7 @@ import com.github.odaridavid.designpatterns.patterns.adapter.StockCableAdapter import org.junit.Test -class AdapterPatternUnitTest { +internal class AdapterPatternUnitTest { @Test fun onConnectedToPowerPort_withStockCableAdapter_printsStatus() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/BridgePatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/BridgePatternUnitTest.kt index b753853..e82e163 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/BridgePatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/BridgePatternUnitTest.kt @@ -18,7 +18,7 @@ import com.github.odaridavid.designpatterns.patterns.bridge.VintageFurniture import org.junit.Test -class BridgePatternUnitTest { +internal class BridgePatternUnitTest { @Test fun getType_fromFurniture_returnWithFurnitureTheme() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/BuilderPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/BuilderPatternUnitTest.kt index ccd8792..95b991a 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/BuilderPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/BuilderPatternUnitTest.kt @@ -19,7 +19,7 @@ import com.github.odaridavid.designpatterns.patterns.builder.Scene import com.github.odaridavid.designpatterns.patterns.builder.TimeOfDay import org.junit.Test -class BuilderPatternUnitTest { +internal class BuilderPatternUnitTest { @Test fun build_returnGameEnvironment() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/ChainOfResponsibilityPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/ChainOfResponsibilityPatternUnitTest.kt index 73bac99..7389868 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/ChainOfResponsibilityPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/ChainOfResponsibilityPatternUnitTest.kt @@ -19,7 +19,7 @@ import com.github.odaridavid.designpatterns.patterns.chainofresponsibility.IceCr import com.github.odaridavid.designpatterns.patterns.chainofresponsibility.IceCreamVendor import org.junit.Test -class ChainOfResponsibilityPatternUnitTest { +internal class ChainOfResponsibilityPatternUnitTest { @Test fun icecreamOrderRequest_chainOfResponsibility() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/CommandPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/CommandPatternUnitTest.kt index a50eb10..0bb0bb7 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/CommandPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/CommandPatternUnitTest.kt @@ -20,7 +20,7 @@ import com.github.odaridavid.designpatterns.patterns.command.RaceOrganizer import org.junit.Test -class CommandPatternUnitTest { +internal class CommandPatternUnitTest { @Test fun raceEvent_commandPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/CompositePatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/CompositePatternUnitTest.kt index 1d8cde8..e4c312b 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/CompositePatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/CompositePatternUnitTest.kt @@ -19,7 +19,7 @@ import com.github.odaridavid.designpatterns.patterns.composite.MagarineContainer import org.junit.Test -class CompositePatternUnitTest { +internal class CompositePatternUnitTest { @Test fun containers_compositePattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/DecoratorPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/DecoratorPatternUnitTest.kt index ea6fc9b..d96d55c 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/DecoratorPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/DecoratorPatternUnitTest.kt @@ -20,7 +20,7 @@ import com.github.odaridavid.designpatterns.patterns.decorator.SportsBar import org.junit.Test -class DecoratorPatternUnitTest { +internal class DecoratorPatternUnitTest { @Test fun barDecoration_decoratorPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/FacadePatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/FacadePatternUnitTest.kt index 2e81cec..8cfbea8 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/FacadePatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/FacadePatternUnitTest.kt @@ -17,7 +17,7 @@ package com.github.odaridavid.designpatterns import com.github.odaridavid.designpatterns.patterns.facade.AnimationDirector import org.junit.Test -class FacadePatternUnitTest { +internal class FacadePatternUnitTest { @Test fun performAnimations_facadePattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/FactoryPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/FactoryPatternUnitTest.kt index fba4a77..642e11c 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/FactoryPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/FactoryPatternUnitTest.kt @@ -18,7 +18,7 @@ import com.github.odaridavid.designpatterns.patterns.factory.ParkBench import com.github.odaridavid.designpatterns.patterns.factory.Sofa import org.junit.Test -class FactoryPatternUnitTest { +internal class FactoryPatternUnitTest { @Test fun getChair_chairFactoy_FactoryPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/FlyweightPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/FlyweightPatternUnitTest.kt index f71a99a..e37925b 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/FlyweightPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/FlyweightPatternUnitTest.kt @@ -17,7 +17,7 @@ import com.github.odaridavid.designpatterns.patterns.flyweight.GameSceneFactory import com.github.odaridavid.designpatterns.patterns.flyweight.TimeOfDay import org.junit.Test -class FlyweightPatternUnitTest { +internal class FlyweightPatternUnitTest { @Test fun gameScenes_flyweightPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/IteratorPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/IteratorPatternUnitTest.kt index 43331a7..a63d119 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/IteratorPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/IteratorPatternUnitTest.kt @@ -16,7 +16,7 @@ package com.github.odaridavid.designpatterns import com.github.odaridavid.designpatterns.patterns.iterator.CarShowroom import org.junit.Test -class IteratorPatternUnitTest { +internal class IteratorPatternUnitTest { @Test fun carShowroom_iteratorPattern() { CarShowroom().showcaseCars() diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/MediatorPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/MediatorPatternUnitTest.kt index 6e11406..5b9e49f 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/MediatorPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/MediatorPatternUnitTest.kt @@ -19,7 +19,7 @@ import com.github.odaridavid.designpatterns.patterns.mediator.User import org.junit.Test -class MediatorPatternUnitTest { +internal class MediatorPatternUnitTest { @Test fun parcel_mediatorPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/MementoPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/MementoPatternUnitTest.kt index 25b82d7..1024faf 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/MementoPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/MementoPatternUnitTest.kt @@ -18,7 +18,7 @@ import com.github.odaridavid.designpatterns.patterns.memento.Originator import org.junit.Test -class MementoPatternUnitTest { +internal class MementoPatternUnitTest { @Test fun savingStates_mementoPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/ObserverPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/ObserverPatternUnitTest.kt index 7ae2a8a..1b6f74e 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/ObserverPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/ObserverPatternUnitTest.kt @@ -18,7 +18,7 @@ import com.github.odaridavid.designpatterns.patterns.observer.NewsletterPublishe import com.github.odaridavid.designpatterns.patterns.observer.Reader import org.junit.Test -class ObserverPatternUnitTest { +internal class ObserverPatternUnitTest { @Test fun newsletterSubscription_observerPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/PrototypePatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/PrototypePatternUnitTest.kt index 275de6d..1fd66d8 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/PrototypePatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/PrototypePatternUnitTest.kt @@ -17,7 +17,7 @@ import com.github.odaridavid.designpatterns.patterns.prototype.Configs import org.junit.Test -class PrototypePatternUnitTest { +internal class PrototypePatternUnitTest { @Test fun configs_copy() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/ProxyPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/ProxyPatternUnitTest.kt index 270da95..7255bdc 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/ProxyPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/ProxyPatternUnitTest.kt @@ -17,7 +17,7 @@ import com.github.odaridavid.designpatterns.patterns.proxy.ProxyCar import org.junit.Test -class ProxyPatternUnitTest { +internal class ProxyPatternUnitTest { @Test fun driveProxyCar_ProxyPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/SingletonPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/SingletonPatternUnitTest.kt index 546199a..5c205eb 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/SingletonPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/SingletonPatternUnitTest.kt @@ -17,7 +17,7 @@ import com.github.odaridavid.designpatterns.patterns.singleton.CentralBank import org.junit.Test -class SingletonPatternUnitTest { +internal class SingletonPatternUnitTest { @Test fun centralBankGetMoney_isSameInstance_singletonPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/StatePatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/StatePatternUnitTest.kt index 16afde4..0448fd8 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/StatePatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/StatePatternUnitTest.kt @@ -17,7 +17,7 @@ import com.github.odaridavid.designpatterns.patterns.state.Door import org.junit.Test -class StatePatternUnitTest { +internal class StatePatternUnitTest { @Test fun door_statePattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/StrategyPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/StrategyPatternUnitTest.kt index f06cda3..cb78746 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/StrategyPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/StrategyPatternUnitTest.kt @@ -19,7 +19,7 @@ import com.github.odaridavid.designpatterns.patterns.strategy.OrderTransaction import org.junit.Test -class StrategyPatternUnitTest { +internal class StrategyPatternUnitTest { @Test fun billing_strategyPattern() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/TemplateMethodUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/TemplateMethodUnitTest.kt index 9f5ba64..de04372 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/TemplateMethodUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/TemplateMethodUnitTest.kt @@ -17,7 +17,7 @@ import com.github.odaridavid.designpatterns.patterns.templatemethod.RectangularW import org.junit.Test -class TemplateMethodUnitTest { +internal class TemplateMethodUnitTest { @Test fun window_templateMethod() { diff --git a/app/src/test/java/com/github/odaridavid/designpatterns/VisitorPatternUnitTest.kt b/app/src/test/java/com/github/odaridavid/designpatterns/VisitorPatternUnitTest.kt index cea036e..b85515b 100644 --- a/app/src/test/java/com/github/odaridavid/designpatterns/VisitorPatternUnitTest.kt +++ b/app/src/test/java/com/github/odaridavid/designpatterns/VisitorPatternUnitTest.kt @@ -20,7 +20,7 @@ import com.github.odaridavid.designpatterns.patterns.visitor.Lodging import org.junit.Test -class VisitorPatternUnitTest { +internal class VisitorPatternUnitTest { @Test fun accommodation_visitorPattern() {