Browse files

Removed experimental test appmaker package, replaced by test fluent.

  • Loading branch information...
1 parent a6e5cbd commit c906017f6f743b49eb02bdb3170721bc1e22f55a Leo Neumeyer committed Dec 16, 2011
View
14 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/AppMakerTest.java
@@ -1,14 +0,0 @@
-package org.apache.s4.appmaker;
-
-import org.junit.Test;
-
-public class AppMakerTest {
-
- @Test
- public void test() {
-
- MyApp myApp = new MyApp();
- myApp.configure();
- System.out.println(myApp.toString());
- }
-}
View
7 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/EventA.java
@@ -1,7 +0,0 @@
-package org.apache.s4.appmaker;
-
-import org.apache.s4.base.Event;
-
-public class EventA extends Event {
-
-}
View
7 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/EventB.java
@@ -1,7 +0,0 @@
-package org.apache.s4.appmaker;
-
-import org.apache.s4.base.Event;
-
-public class EventB extends Event {
-
-}
View
25 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/MyApp.java
@@ -1,25 +0,0 @@
-package org.apache.s4.appmaker;
-
-public class MyApp extends AppMaker {
-
- @Override
- protected void configure() {
-
- PEMaker pez, pey;
- StreamMaker s1;
- StreamMaker s2, s3;
-
- pez = addPE(PEZ.class);
-
- s1 = addStream("stream1", EventA.class).withName("My first stream.").withKey("{gender}").to(pez);
-
- pey = addPE(PEY.class).to(s1).property("duration", 4).property("height", 99);
-
- s2 = addStream("stream2", EventB.class).withName("My second stream.").withKey("{age}").to(pey).to(pez);
-
- s3 = addStream("stream3", EventB.class).withKey("{height}").to(pey);
-
- addPE(PEX.class).to(s2).to(s3).property("keyword", "money");
- }
-
-}
View
19 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/PEX.java
@@ -1,19 +0,0 @@
-package org.apache.s4.appmaker;
-
-import org.apache.s4.core.ProcessingElement;
-
-public class PEX extends ProcessingElement {
-
- @Override
- protected void onCreate() {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- protected void onRemove() {
- // TODO Auto-generated method stub
-
- }
-
-}
View
37 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/PEY.java
@@ -1,37 +0,0 @@
-package org.apache.s4.appmaker;
-
-import org.apache.s4.core.ProcessingElement;
-import org.apache.s4.core.Stream;
-
-public class PEY extends ProcessingElement {
-
- private Stream<EventB> stream3;
-
- @Override
- protected void onCreate() {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- protected void onRemove() {
- // TODO Auto-generated method stub
-
- }
-
- /**
- * @return the stream3
- */
- Stream<EventB> getStream3() {
- return stream3;
- }
-
- /**
- * @param stream3
- * the stream3 to set
- */
- void setStream3(Stream<EventB> stream3) {
- this.stream3 = stream3;
- }
-
-}
View
53 subprojects/s4-core/src/test/java/org/apache/s4/appmaker/PEZ.java
@@ -1,53 +0,0 @@
-package org.apache.s4.appmaker;
-
-import org.apache.s4.core.ProcessingElement;
-import org.apache.s4.core.Stream;
-
-public class PEZ extends ProcessingElement {
-
- private Stream<EventA> stream1;
- private Stream<EventB> stream2;
-
- /**
- * @return the stream1
- */
- Stream<EventA> getStream1() {
- return stream1;
- }
-
- /**
- * @param stream1
- * the stream1 to set
- */
- void setStream1(Stream<EventA> stream1) {
- this.stream1 = stream1;
- }
-
- /**
- * @return the stream2
- */
- Stream<EventB> getStream2() {
- return stream2;
- }
-
- /**
- * @param stream2
- * the stream2 to set
- */
- void setStream2(Stream<EventB> stream2) {
- this.stream2 = stream2;
- }
-
- @Override
- protected void onCreate() {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- protected void onRemove() {
- // TODO Auto-generated method stub
-
- }
-
-}

0 comments on commit c906017

Please sign in to comment.