├── .gitignore
├── LICENSE.txt
├── README.md
├── kata.pdf
├── mastercrupt
├── .classpath
├── .project
├── lib
│ └── junit-4.7.jar
└── src
│ ├── main
│ └── java
│ │ └── mastercrupt
│ │ ├── Application.java
│ │ ├── Leeter.java
│ │ └── UI.java
│ └── test
│ └── java
│ └── mastercrupt
│ └── AcceptanceTest.java
└── template_with_junit
├── .classpath
├── .project
├── lib
└── junit-4.7.jar
└── src
├── main
└── java
│ └── .dummy
└── test
└── java
└── .dummy
/.gitignore:
--------------------------------------------------------------------------------
1 | classes
2 | .metadata
3 |
4 | .gradle
5 | .classpath
6 | .project
7 | .settings
8 | bin
9 | example3/build
10 | *.iml
11 | *.eml
12 | *.ipr
13 | *.iws
14 | .idea/
15 | out
16 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The license for this software is according to
2 | http://creativecommons.org/licenses/by-sa/3.0/
3 |
4 | If you need a different license for some reason, use the contact info on https://github.com/mikadomethod
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Kata in java
2 | ============
3 | ##### Background
4 | Follow instructions in REPOROOT/kata.pdf
5 |
6 | ##### Goal
7 | New deliverable for Stranger Eons Ltd.
--------------------------------------------------------------------------------
/kata.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mikadomethod/kata-java/04af30cfc52ae7aeee34d8b2adf61e9c98d26c98/kata.pdf
--------------------------------------------------------------------------------
/mastercrupt/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/mastercrupt/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | mastercrupt
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/mastercrupt/lib/junit-4.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mikadomethod/kata-java/04af30cfc52ae7aeee34d8b2adf61e9c98d26c98/mastercrupt/lib/junit-4.7.jar
--------------------------------------------------------------------------------
/mastercrupt/src/main/java/mastercrupt/Application.java:
--------------------------------------------------------------------------------
1 | package mastercrupt;
2 |
3 | public class Application {
4 | public void leet(String string, UI ui) {
5 | ui.setLeeted(Leeter.leet(string));
6 | }
7 | public static void main(String[] args) {
8 | UI ui = new UI();
9 | System.out.println(ui.leetMessage(args[0]));
10 | }
11 | }
--------------------------------------------------------------------------------
/mastercrupt/src/main/java/mastercrupt/Leeter.java:
--------------------------------------------------------------------------------
1 | package mastercrupt;
2 |
3 | public class Leeter {
4 | public static String leet(String message) {
5 | return message.replace('e', '3');
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/mastercrupt/src/main/java/mastercrupt/UI.java:
--------------------------------------------------------------------------------
1 | package mastercrupt;
2 |
3 | public class UI {
4 | private Application application = new Application();
5 | private String leeted;
6 |
7 | public String leetMessage(String unLeeted) {
8 | application.leet(unLeeted, this);
9 | return "Leeted: " + leeted;
10 | }
11 |
12 | public void setLeeted(String leeted) {
13 | this.leeted = leeted;
14 | }
15 | }
--------------------------------------------------------------------------------
/mastercrupt/src/test/java/mastercrupt/AcceptanceTest.java:
--------------------------------------------------------------------------------
1 | package mastercrupt;
2 |
3 | import static org.junit.Assert.assertEquals;
4 | import mastercrupt.UI;
5 |
6 | import org.junit.Test;
7 | public class AcceptanceTest {
8 | @Test
9 | public void testLeeting() throws Exception {
10 | UI ui = new UI();
11 | assertEquals("Leeted: S3cr3t", ui.leetMessage("Secret"));
12 | }
13 | }
--------------------------------------------------------------------------------
/template_with_junit/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/template_with_junit/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | template_with_junit
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/template_with_junit/lib/junit-4.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mikadomethod/kata-java/04af30cfc52ae7aeee34d8b2adf61e9c98d26c98/template_with_junit/lib/junit-4.7.jar
--------------------------------------------------------------------------------
/template_with_junit/src/main/java/.dummy:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mikadomethod/kata-java/04af30cfc52ae7aeee34d8b2adf61e9c98d26c98/template_with_junit/src/main/java/.dummy
--------------------------------------------------------------------------------
/template_with_junit/src/test/java/.dummy:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mikadomethod/kata-java/04af30cfc52ae7aeee34d8b2adf61e9c98d26c98/template_with_junit/src/test/java/.dummy
--------------------------------------------------------------------------------