Skip to content

Commit

Permalink
#11 Update object graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperolsson-se committed Sep 15, 2021
1 parent c39ed0f commit 8669ff1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 57 deletions.
1 change: 1 addition & 0 deletions a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<artifactId>takes</artifactId>
<version>1.16</version>
</dependency>
<dependency>
<groupId>org.cactoos</groupId>
<artifactId>cactoos</artifactId>
<version>0.50</version>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -99,7 +104,7 @@
<configuration>
<license>file:${basedir}/tldr-license</license>
<excludes>
<exclude>dependencies:org.takes:takes</exclude>
<exclude>dependencies:.*</exclude>
</excludes>
</configuration>
<executions>
Expand Down
21 changes: 0 additions & 21 deletions src/main/java/se/jesperolsson/cogniation/Greeting.java

This file was deleted.

27 changes: 25 additions & 2 deletions src/main/java/se/jesperolsson/cogniation/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/
package se.jesperolsson.cogniation;

import org.cactoos.iterable.IterableOf;
import org.cactoos.iterator.Cycled;
import org.takes.facets.fork.FkRegex;
import org.takes.facets.fork.TkFork;
import org.takes.http.Exit;
Expand All @@ -18,10 +20,12 @@ public final class Main {
/**
* Ctor.
*/
private Main() { }
private Main() {
}

/**
* Main method.
*
* @param args Program arguments.
* @throws Exception If request cannot be processed.
*/
Expand All @@ -30,7 +34,26 @@ public static void main(final String... args) throws Exception {
new FtBasic(
new TkFork(
new FkRegex(
"/", new Greeting()
"/",
new Exercise(
new Cycled<>(
new IterableOf<>(
new AcText("Name three religious festivals."),
new AcText("Name three birds."),
new AcText("Name three TV shows."),
new AcText("Name three car brands."),
new AcText("Name three countries."),
new AcText("Name three dishes."),
new AcText("Name three fruits."),
new AcText("Name three toys."),
new AcText("Name three pieces of furniture."),
new AcText("Name three pieces of clothing."),
new AcText("Name three pets."),
new AcText("Name three professions."),
new AcText("Name three ball games.")
)
)
)
)
), port
).start(Exit.NEVER);
Expand Down
33 changes: 0 additions & 33 deletions src/test/java/se/jesperolsson/cogniation/GreetingTest.java

This file was deleted.

0 comments on commit 8669ff1

Please sign in to comment.