diff --git a/build.gradle b/build.gradle index b6bfd4f..e5b08ce 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/src/test/java/Test.java b/src/test/java/Test.java index 78b4825..a2313d4 100644 --- a/src/test/java/Test.java +++ b/src/test/java/Test.java @@ -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(); @@ -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(); @@ -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(); @@ -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);