forked from valentinajemuovic/banking-kata-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
valentinajemuovic#72 Third Party Integration - National Identity Prov…
…ider - Updated test should_open_account_given_valid_request
- Loading branch information
1 parent
88469f5
commit 5c0faf9
Showing
8 changed files
with
49 additions
and
25 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,19 +1,13 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
group 'com.optivem.kata.banking' | ||
version '0.0.1-SNAPSHOT' | ||
dependencies { | ||
implementation project(':core') | ||
|
||
repositories { | ||
mavenCentral() | ||
testImplementation project(':adapter-base') | ||
} | ||
|
||
dependencies { | ||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
bootJar { | ||
enabled = false | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
jar { | ||
enabled = true | ||
} |
7 changes: 0 additions & 7 deletions
7
adapter-thirdparty-fake/src/main/java/com/optivem/kata/banking/Main.java
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...main/java/com/optivem/kata/banking/adapters/driven/fake/FakeNationalIdentityProvider.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,6 @@ | ||
package com.optivem.kata.banking.adapters.driven.fake; | ||
|
||
public class FakeNationalIdentityProvider { | ||
public void add(String nationalIdentityNumber) { | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...m/optivem/kata/banking/adapters/driven/fake/givens/FakeNationalIdentityProviderGiven.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,15 @@ | ||
package com.optivem.kata.banking.adapters.driven.fake.givens; | ||
|
||
import com.optivem.kata.banking.adapters.driven.fake.FakeNationalIdentityProvider; | ||
|
||
public class FakeNationalIdentityProviderGiven { | ||
private final FakeNationalIdentityProvider provider; | ||
|
||
public FakeNationalIdentityProviderGiven(FakeNationalIdentityProvider provider) { | ||
this.provider = provider; | ||
} | ||
|
||
public void contains(String nationalIdentityNumber) { | ||
provider.add(nationalIdentityNumber); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../optivem/kata/banking/adapters/driven/fake/givens/FakeNationalIdentityProviderGivens.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,11 @@ | ||
package com.optivem.kata.banking.adapters.driven.fake.givens; | ||
|
||
import com.optivem.kata.banking.adapters.driven.fake.FakeNationalIdentityProvider; | ||
|
||
import java.util.Collection; | ||
|
||
public class FakeNationalIdentityProviderGivens { | ||
public static FakeNationalIdentityProviderGiven givenThat(FakeNationalIdentityProvider provider) { | ||
return new FakeNationalIdentityProviderGiven(provider); | ||
} | ||
} |
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