1 Reply Latest reply on Jun 12, 2011 10:52 AM by Aslak Knutsen

    Celsius example at QuickStart

    Lauri Newbie

      Hello

       

      I'm new to Arquillian, let me share my QuickStart experience. Probably guide at  http://docs.jboss.org/arquillian/reference/latest/en-US/html/gettingstarted.html#d0e451 should be updated.

       

      As a newbie i faced a brunch of unresolved artifacts, thats because newcomer's maven is unaware of jboss public repo. One should add repos to his pom.xml

       

      <repositories>

              <repository>

                  <id>jboss-public-repository-group</id>

                  <name>JBoss Public Repository Group</name>

                  <url>http://repository.jboss.org/nexus/content/groups/public/</url>

                  <layout>default</layout>

                  <releases>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                  </releases>

                  <snapshots>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                  </snapshots>

              </repository>

              <repository>

                  <id>jboss-deprecated</id>

                  <name>JBoss Deprecated</name>

                  <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>

                  <layout>default</layout>

                  <releases>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                  </releases>

                  <snapshots>

                      <enabled>false</enabled>

                  </snapshots>

              </repository>

          </repositories>

       

       

      Problem occured with JUnit 4.8.1

      Assert.assertEquals(double, double) is depricated and gives an error "java.lang.AssertionError : Use assertEquals(expected, actual, delta) to compare floating-point numbers [Proxied because : Could not find suitable constructor]"

       

      Example should be altered to something like

       

      Assert.assertEquals(converter.convertToCelsius(212d), 100d, DELTA);

      where DELTA is a defined constant

      public static final double DELTA = 0.1;