Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gleidsonmt committed Jul 2, 2020
1 parent 3489e2f commit 32e48f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
}

group = 'io.github.Gleidson28'
version = '1.0.2'
version = '1.0.3'
mainClassName = 'io.github.Gleidson28.App'

apply plugin: 'com.bmuschko.nexus'
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void start(Stage stage) {
private void createDefaultAvatarWithPath(Stage stage){
stage.setTitle("Create Default Avatar With Path");

GNAvatarView avatarView = new GNAvatarView("smile.jpg", 1000,300);
GNAvatarView avatarView = new GNAvatarView("smile.jpg");

stage.setScene(new Scene(avatarView));
stage.show();
Expand All @@ -64,7 +64,7 @@ private void createDefaultAvatarWithImage(Stage stage){
private void createRectAvatar(Stage stage){
stage.setTitle("Create Rect Avatar");

GNAvatarView avatarView = new GNAvatarView("smile.jpg", 1000,300);
GNAvatarView avatarView = new GNAvatarView("smile.jpg", 1000,300, AvatarType.RECT);
avatarView.setType(AvatarType.RECT);
stage.setScene(new Scene(avatarView));
stage.show();
Expand All @@ -74,7 +74,7 @@ private void createRectAvatar(Stage stage){
private void createCircleAvatar(Stage stage){
stage.setTitle("Create Rect Avatar");

GNAvatarView avatarView = new GNAvatarView("smile.jpg", 1000,300);
GNAvatarView avatarView = new GNAvatarView("smile.jpg", 1000,300, AvatarType.CIRCLE);
avatarView.setType(AvatarType.CIRCLE);
stage.setScene(new Scene(avatarView));
stage.show();
Expand All @@ -84,7 +84,7 @@ private void createCircleAvatar(Stage stage){
private void testWithStroke(Stage stage){
stage.setTitle("Create Rect Avatar");

GNAvatarView avatarView = new GNAvatarView("smile.jpg", 1000,300);
GNAvatarView avatarView = new GNAvatarView("smile.jpg");
avatarView.setType(AvatarType.CIRCLE);
avatarView.setStroke(Color.RED);
avatarView.setStrokeWidth(20);
Expand Down

0 comments on commit 32e48f7

Please sign in to comment.