Skip to content

Commit

Permalink
FORGE-2579: Upgrades to Hibernate Validator 5.3.0.Alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jan 15, 2016
1 parent d0cc10b commit 823cc40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bean-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</modules>

<properties>
<version.hibernate.validator>5.2.2.Final</version.hibernate.validator>
<version.hibernate.validator>5.3.0.Alpha1</version.hibernate.validator>
</properties>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import javax.inject.Inject;

import org.hibernate.validator.valuehandling.UnwrapValidatedValue;
import org.jboss.forge.addon.ui.command.AbstractUICommand;
import org.jboss.forge.addon.ui.context.UIBuilder;
import org.jboss.forge.addon.ui.context.UIExecutionContext;
Expand All @@ -26,7 +25,6 @@ public class ValidationJDK8Command extends AbstractUICommand
{
@Inject
@WithAttributes(label = "Name")
@UnwrapValidatedValue
private UIInput<@NotFoo String> name;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.jboss.forge.arquillian.archive.AddonArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -30,7 +29,6 @@
* @author <a href="ggastald@redhat.com">George Gastaldi</a>
*/
@RunWith(Arquillian.class)
@Ignore("HV-1022")
public class ValidationJDK8UITest
{
@Deployment
Expand Down Expand Up @@ -64,7 +62,7 @@ public void testValidation() throws Exception
Assert.assertFalse("Controller should not be valid", controller.isValid());
List<UIMessage> messages = controller.validate();
Assert.assertEquals("An error should have been captured", 1, messages.size());
Assert.assertEquals("My Error Message", messages.get(0).getDescription());
Assert.assertEquals("Name: My Error Message", messages.get(0).getDescription());
}
}
}

0 comments on commit 823cc40

Please sign in to comment.