Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from iamjosephmj/develop
Browse files Browse the repository at this point in the history
- Renaming "teatDown" to "tearDown"
  • Loading branch information
iamjosephmj committed Jun 19, 2021
2 parents b4426eb + f269214 commit 71d2bbb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.test.rule.ActivityTestRule
import me.iamjoseph.raccoon.core.stub.RaccoonStub
import me.iamjoseph.raccoon.core.stub.config.RaccoonConfig
import me.iamjoseph.raccoonsample.MainActivity
import me.iamjoseph.raccoonsample.includetest.helpers.MockService
import org.junit.After
import org.junit.Before
import org.junit.Rule
Expand All @@ -30,7 +31,7 @@ class IncludeTest {
fun before() {
RaccoonStub.setUp(
RaccoonConfig.Builder()
.addService(me.iamjoseph.raccoonsample.includetest.helpers.MockService::class)
.addService(MockService::class)
.build()
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ParsingTest {

@After
fun tearDown() {
RaccoonStub.teatDown()
RaccoonStub.tearDown()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object RaccoonStub {
/**
* Memory cleanup
*/
fun teatDown() {
fun tearDown() {
ControllerGraph.cleanUp()
ServiceGraph.cleanUp()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import me.iamjoseph.raccoon.core.stub.RaccoonStub
import me.iamjoseph.raccoon.core.stub.config.RaccoonConfig
import me.iamjoseph.raccoon.exception.EndpointNotFoundException
import me.iamjoseph.raccoon.helper.GsonServiceInclude
import me.iamjoseph.raccoon.helper.MockService
import me.iamjoseph.raccoon.helper.request.GsonRequestBody
import me.iamjoseph.raccoon.parser.GsonPlugin
import me.iamjoseph.raccoon.presentation.request.Parameters
Expand All @@ -25,7 +24,6 @@ class IncludeIntegrationTestsMoshi {

@Before
fun setupStub() {
RaccoonStub.teatDown()
RaccoonStub.setUp(
RaccoonConfig.Builder()
.addService(GsonServiceInclude::class)
Expand Down Expand Up @@ -219,7 +217,7 @@ class IncludeIntegrationTestsMoshi {

@After
fun cleanUp() {
RaccoonStub.teatDown()
RaccoonStub.tearDown()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import me.iamjoseph.raccoon.core.stub.RaccoonStub
import me.iamjoseph.raccoon.core.stub.config.RaccoonConfig
import me.iamjoseph.raccoon.exception.EndpointNotFoundException
import me.iamjoseph.raccoon.helper.GsonServiceInclude
import me.iamjoseph.raccoon.helper.MockService
import me.iamjoseph.raccoon.helper.request.MoshiRequestBody
import me.iamjoseph.raccoon.parser.MoshiPlugin
import me.iamjoseph.raccoon.presentation.request.Parameters
Expand All @@ -25,7 +24,6 @@ class IncludedIntegrationTestsGson {

@Before
fun setupStub() {
RaccoonStub.teatDown()
RaccoonStub.setUp(
RaccoonConfig.Builder()
.addService(GsonServiceInclude::class)
Expand Down Expand Up @@ -243,7 +241,7 @@ class IncludedIntegrationTestsGson {

@After
fun cleanUp() {
RaccoonStub.teatDown()
RaccoonStub.tearDown()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class IntegrationTestsGson {

@Before
fun setupStub() {
RaccoonStub.teatDown()
RaccoonStub.setUp(
RaccoonConfig.Builder()
.addService(MockService::class)
Expand Down Expand Up @@ -218,7 +217,7 @@ class IntegrationTestsGson {

@After
fun cleanUp() {
RaccoonStub.teatDown()
RaccoonStub.tearDown()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class IntegrationTestsMoshi {

@Before
fun setupStub() {
RaccoonStub.teatDown()
RaccoonStub.setUp(
RaccoonConfig.Builder()
.addService(MockService::class)
Expand Down Expand Up @@ -242,7 +241,7 @@ class IntegrationTestsMoshi {

@After
fun cleanUp() {
RaccoonStub.teatDown()
RaccoonStub.tearDown()
}

}

0 comments on commit 71d2bbb

Please sign in to comment.