-
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.
test(framework): Add tests for history
- Loading branch information
Showing
5 changed files
with
113 additions
and
1 deletion.
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
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
25 changes: 25 additions & 0 deletions
25
framework/src/test/java/org/fulib/fx/app/history/AController.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,25 @@ | ||
package org.fulib.fx.app.history; | ||
|
||
import javafx.scene.control.Label; | ||
import javafx.scene.layout.VBox; | ||
import org.fulib.fx.annotation.controller.Controller; | ||
import org.fulib.fx.annotation.event.onRender; | ||
import org.fulib.fx.annotation.param.Param; | ||
|
||
@Controller(view = "#render") | ||
public class AController { | ||
|
||
Label label = new Label(); | ||
|
||
public AController() { | ||
} | ||
|
||
public VBox render() { | ||
return new VBox(label); | ||
} | ||
|
||
@onRender | ||
public void onRender(@Param("string") String string) { | ||
label.setText("A:" + string); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
framework/src/test/java/org/fulib/fx/app/history/BController.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,25 @@ | ||
package org.fulib.fx.app.history; | ||
|
||
import javafx.scene.control.Label; | ||
import javafx.scene.layout.VBox; | ||
import org.fulib.fx.annotation.controller.Controller; | ||
import org.fulib.fx.annotation.event.onRender; | ||
import org.fulib.fx.annotation.param.Param; | ||
|
||
@Controller(view = "#render") | ||
public class BController { | ||
|
||
Label label = new Label(); | ||
|
||
public BController() { | ||
} | ||
|
||
public VBox render() { | ||
return new VBox(label); | ||
} | ||
|
||
@onRender | ||
public void onRender(@Param("string") String string) { | ||
label.setText("B:" + string); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
framework/src/test/java/org/fulib/fx/app/history/CController.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,25 @@ | ||
package org.fulib.fx.app.history; | ||
|
||
import javafx.scene.control.Label; | ||
import javafx.scene.layout.VBox; | ||
import org.fulib.fx.annotation.controller.Controller; | ||
import org.fulib.fx.annotation.event.onRender; | ||
import org.fulib.fx.annotation.param.Param; | ||
|
||
@Controller(view = "#render") | ||
public class CController { | ||
|
||
Label label = new Label(); | ||
|
||
public CController() { | ||
} | ||
|
||
public VBox render() { | ||
return new VBox(label); | ||
} | ||
|
||
@onRender | ||
public void onRender(@Param("string") String string) { | ||
label.setText("C:" + string); | ||
} | ||
} |