@@ -0,0 +1,2338 @@
+/*%0D%0A * To change this license header, choose License Headers in Project Properties.%0D%0A * To change this template file, choose Tools %7C Templates%0D%0A * and open the template in the editor.%0D%0A */%0D%0Apackage be.fror.password.rule;%0D%0A%0D%0Aimport static org.hamcrest.Matchers.equalTo;%0D%0Aimport static org.hamcrest.Matchers.is;%0D%0Aimport static org.junit.Assert.assertThat;%0D%0A%0D%0Aimport com.google.common.collect.ImmutableList;%0D%0Aimport org.junit.After;%0D%0Aimport org.junit.AfterClass;%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.BeforeClass;%0D%0Aimport org.junit.Test;%0D%0A%0D%0A/**%0D%0A *%0D%0A * @author Olivier Gr%C3%A9goire %3Chttps://github.com/fror%3E%0D%0A */%0D%0Apublic class RuleResultTest %7B%0D%0A%0D%0A  public RuleResultTest() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   *%0D%0A   */%0D%0A  @BeforeClass%0D%0A  public static void setUpClass() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   *%0D%0A   */%0D%0A  @AfterClass%0D%0A  public static void tearDownClass() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   *%0D%0A   */%0D%0A  @Before%0D%0A  public void setUp() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   *%0D%0A   */%0D%0A  @After%0D%0A  public void tearDown() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of isValid method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testIsValid() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of getFailures method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testGetFailures() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of ok method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testOk() %7B%0D%0A    RuleResult result = RuleResult.ok();%0D%0A%0D%0A    assertThat(result.isValid(), is(true));%0D%0A    assertThat(result.getFailures(), is(equalTo(ImmutableList.of())));%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of failed method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testFailed_0args() %7B%0D%0A    RuleResult result = RuleResult.failed();%0D%0A%0D%0A    assertThat(result.isValid(), is(false));%0D%0A    assertThat(result.getFailures(), is(equalTo(ImmutableList.of())));%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of failed method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testFailed_String() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of failed method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testFailed_3args() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of failed method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testFailed_5args() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of failed method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testFailed_7args() %7B%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Test of failed method, of class RuleResult.%0D%0A   */%0D%0A  @Test%0D%0A  public void testFailed_String_Map() %7B%0D%0A  %7D%0D%0A%0D%0A%7D%0D%0A

Add basic unit tests for RuleResult.