Skip to content

Commit

Permalink
Merge branch 'with-latest-snapshot-versions'
Browse files Browse the repository at this point in the history
Conflicts:
	README.md
	assertions-examples/pom.xml
	assertions-examples/src/test/java/org/assertj/examples/ArrayAssertionsExamples.java
	assertions-examples/src/test/java/org/assertj/examples/AssertDelegateTargetExample.java
	assertions-examples/src/test/java/org/assertj/examples/BDDAssertionsExamples.java
	assertions-examples/src/test/java/org/assertj/examples/IterableAssertionsExamples.java
	assertions-examples/src/test/java/org/assertj/examples/JUnitSoftAssertionsExamples.java
	assertions-examples/src/test/java/org/assertj/examples/MapAssertionsExamples.java
	assertions-examples/src/test/java/org/assertj/examples/condition/UsingConditionExamples.java
	assertions-examples/src/test/java/org/assertj/examples/custom/CustomAssertExamples.java
	assertions-examples/src/test/java/org/assertj/examples/custom/MyProjectAssertions.java
	assertions-examples/src/test/java/org/assertj/examples/data/.gitignore
	src/test/java/org/assertj/examples/neo4j/ExecutionResultAssertionExamples.java
  • Loading branch information
joel-costigliola committed Oct 6, 2014
2 parents 11dd647 + b3f065e commit 99ab2aa
Show file tree
Hide file tree
Showing 106 changed files with 4,711 additions and 365 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ AssertJ examples is divided in two : assertions-examples (core, guava and joda a
Please have a look at **[assertions examples sources](assertions-examples/src/test/java/org/assertj/examples)**.

The **master** branch contains examples with the latest released version of AssertJ modules, you can build it with `mvn clean install` command.
In your IDE, add `src/test/generated-assertions` to the project java sources if you IDE shows errors/missing classes.
This folder is where custom assertions classes are generated, it shows what you have with the maven assertions generator plugin.

Building **with-latest-snapshot-versions** is a little more complicated :
- you need to build the needed SNAPSHOT dependencies before - most probably assertj-core and maybe other modules.
- run `mvn clean install` in `assertj-examples/assertions-examples`.
- In your IDE, add `target/generated-test-sources` to the project java sources if you IDE shows errors/missing classes.
- In your IDE, add `src/test/generated-assertions` to the project java sources if you IDE shows errors/missing classes.

### AssertJ-Swing examples

Expand Down
150 changes: 150 additions & 0 deletions assertions-examples/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" path="src/test/generated-assertions"/>
<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry including="**/*.java" kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/cglib/cglib/2.2.2/cglib-2.2.2.jar" sourcepath="M2_REPO/cglib/cglib/2.2.2/cglib-2.2.2-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/cglib/cglib/2.2.2/cglib-2.2.2-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/asm/asm/3.3.1/asm-3.3.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/assertj/assertj-core/1.7.0/assertj-core-1.7.0.jar" sourcepath="M2_REPO/org/assertj/assertj-core/1.7.0/assertj-core-1.7.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/assertj/assertj-core/1.7.0/assertj-core-1.7.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/assertj/assertj-joda-time/1.1.0/assertj-joda-time-1.1.0.jar" sourcepath="M2_REPO/org/assertj/assertj-joda-time/1.1.0/assertj-joda-time-1.1.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/assertj/assertj-joda-time/1.1.0/assertj-joda-time-1.1.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/assertj/assertj-guava/1.2.0/assertj-guava-1.2.0.jar" sourcepath="M2_REPO/org/assertj/assertj-guava/1.2.0/assertj-guava-1.2.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/assertj/assertj-guava/1.2.0/assertj-guava-1.2.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/com/google/guava/guava/17.0/guava-17.0.jar" sourcepath="M2_REPO/com/google/guava/guava/17.0/guava-17.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/com/google/guava/guava/17.0/guava-17.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/assertj/assertj-neo4j/1.0.0/assertj-neo4j-1.0.0.jar" sourcepath="M2_REPO/org/assertj/assertj-neo4j/1.0.0/assertj-neo4j-1.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/assertj/assertj-neo4j/1.0.0/assertj-neo4j-1.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-kernel/2.0.0/neo4j-kernel-2.0.0-tests.jar" sourcepath="M2_REPO/org/neo4j/neo4j-kernel/2.0.0/neo4j-kernel-2.0.0-test-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar" sourcepath="M2_REPO/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/joda-time/joda-time/2.3/joda-time-2.3.jar" sourcepath="M2_REPO/joda-time/joda-time/2.3/joda-time-2.3-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/joda-time/joda-time/2.3/joda-time-2.3-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j/2.0.0/neo4j-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j/2.0.0/neo4j-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j/2.0.0/neo4j-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-kernel/2.0.0/neo4j-kernel-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-kernel/2.0.0/neo4j-kernel-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-kernel/2.0.0/neo4j-kernel-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-lucene-index/2.0.0/neo4j-lucene-index-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-lucene-index/2.0.0/neo4j-lucene-index-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-lucene-index/2.0.0/neo4j-lucene-index-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-core/3.6.2/lucene-core-3.6.2.jar" sourcepath="M2_REPO/org/apache/lucene/lucene-core/3.6.2/lucene-core-3.6.2-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/apache/lucene/lucene-core/3.6.2/lucene-core-3.6.2-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-graph-algo/2.0.0/neo4j-graph-algo-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-graph-algo/2.0.0/neo4j-graph-algo-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-graph-algo/2.0.0/neo4j-graph-algo-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-udc/2.0.0/neo4j-udc-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-udc/2.0.0/neo4j-udc-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-udc/2.0.0/neo4j-udc-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-graph-matching/2.0.0/neo4j-graph-matching-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-graph-matching/2.0.0/neo4j-graph-matching-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-graph-matching/2.0.0/neo4j-graph-matching-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-cypher/2.0.0/neo4j-cypher-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-cypher/2.0.0/neo4j-cypher-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-cypher/2.0.0/neo4j-cypher-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-cypher-commons/2.0.0/neo4j-cypher-commons-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-cypher-commons/2.0.0/neo4j-cypher-commons-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-cypher-commons/2.0.0/neo4j-cypher-commons-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.3.1/concurrentlinkedhashmap-lru-1.3.1.jar" sourcepath="M2_REPO/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.3.1/concurrentlinkedhashmap-lru-1.3.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.3.1/concurrentlinkedhashmap-lru-1.3.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.jar" sourcepath="M2_REPO/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-cypher-compiler-1.9/2.0.0/neo4j-cypher-compiler-1.9-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-cypher-compiler-1.9/2.0.0/neo4j-cypher-compiler-1.9-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-cypher-compiler-1.9/2.0.0/neo4j-cypher-compiler-1.9-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-cypher-compiler-2.0/2.0.0/neo4j-cypher-compiler-2.0-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-cypher-compiler-2.0/2.0.0/neo4j-cypher-compiler-2.0-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-cypher-compiler-2.0/2.0.0/neo4j-cypher-compiler-2.0-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/parboiled/parboiled-scala_2.10/1.1.6/parboiled-scala_2.10-1.1.6.jar" sourcepath="M2_REPO/org/parboiled/parboiled-scala_2.10/1.1.6/parboiled-scala_2.10-1.1.6-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/parboiled/parboiled-scala_2.10/1.1.6/parboiled-scala_2.10-1.1.6-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/parboiled/parboiled-core/1.1.6/parboiled-core-1.1.6.jar" sourcepath="M2_REPO/org/parboiled/parboiled-core/1.1.6/parboiled-core-1.1.6-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/parboiled/parboiled-core/1.1.6/parboiled-core-1.1.6-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/neo4j/neo4j-jmx/2.0.0/neo4j-jmx-2.0.0.jar" sourcepath="M2_REPO/org/neo4j/neo4j-jmx/2.0.0/neo4j-jmx-2.0.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/neo4j/neo4j-jmx/2.0.0/neo4j-jmx-2.0.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar" sourcepath="M2_REPO/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-core/1.0.13/logback-core-1.0.13.jar"/>
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.10/junit-4.10.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar" sourcepath="M2_REPO/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/objenesis/objenesis/1.0/objenesis-1.0.jar" sourcepath="M2_REPO/org/objenesis/objenesis/1.0/objenesis-1.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/joel/.m2/repository/org/objenesis/objenesis/1.0/objenesis-1.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 0 additions & 2 deletions assertions-examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/target
/.settings
/.classpath
/.project
.DS_Store
.idea
/*.iml
14 changes: 14 additions & 0 deletions assertions-examples/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>assertj-examples</name>
<comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
31 changes: 12 additions & 19 deletions assertions-examples/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">

<modelVersion>4.0.0</modelVersion>
<groupId>org.assertj</groupId>
Expand Down Expand Up @@ -33,7 +33,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>1.6.1</version>
<version>1.7.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -79,7 +79,7 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.9</version>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -123,18 +123,14 @@
<include>**/*Examples.java</include>
</includes>
<argLine>-Xms128m -Xmx512m</argLine>
<!--<parallel>methods</parallel>-->
<!--<threadCount>4</threadCount>-->
<!--<parallel>methods</parallel> -->
<!--<threadCount>4</threadCount> -->
</configuration>
</plugin>
<plugin>
<groupId>org.assertj</groupId>
<artifactId>assertj-assertions-generator-maven-plugin</artifactId>
<version>1.4.0</version>
<!--
To build assert-examples, we need to generating custom assertions every time.
In your project you can comment <executions>...</executions> to avoid generating custom assertions at every build
-->
<version>1.4.1</version>
<executions>
<execution>
<goals>
Expand All @@ -144,29 +140,26 @@
</executions>
<configuration>
<packages>
<param>org.assertj.examples.rpg</param>
<param>org.assertj.examples.data</param>
<param>com.google.common.net</param>
</packages>
<hierarchical>true</hierarchical>
<targetDir>src/test/java</targetDir>
<entryPointClassPackage>org.assertj.examples.data</entryPointClassPackage>
<!--
<includes>
<param>org\.assertj\.examples\.rpg.*</param>
</includes>
-->
<entryPointClassPackage>org.assertj</entryPointClassPackage>
<!-- <includes> <param>org\.assertj\.examples\.rpg.*</param> </includes> -->
<excludes>
<param>.*google.*HostSpecifier</param>
<param>.*google.*Headers</param>
<param>.*google.*MediaType</param>
<param>.*google.*Escaper.*</param>
</excludes>
<targetDir>src/test/generated-assertions</targetDir>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<version>1.9</version>
<executions>
<execution>
<id>add-source</id>
Expand All @@ -177,7 +170,7 @@
<configuration>
<sources>
<!-- must be = assertj-assertions-generator-maven-plugin.targetDir -->
<source>target/generated-test-sources/assertj-assertions</source>
<source>src/test/generated-assertions</source>
</sources>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
public class BasketBallPlayer {

private Name name;
public double size;
private float weight;
private int pointsPerGame;
private int assistsPerGame;
private int reboundsPerGame;
Expand All @@ -49,6 +51,14 @@ public void setName(Name name) {
this.name = name;
}

public float getWeight() {
return weight;
}

public void setWeight(float weight) {
this.weight = weight;
}

public int getPointsPerGame() {
return pointsPerGame;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright 2012-2014 the original author or authors.
*/
package org.assertj.examples.data;

public class Book {

private Title title;

public Book(String title) {

this.title = new Title(title);
}

public Title getTitle() {
return title;
}

public static class Title {
private String title;

public Title(String title) {
super();
this.title = title;
}

public String getTitle() {
return title;
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright 2012-2014 the original author or authors.
*/
package org.assertj.examples.data;

// only used to verify that we don't generate assertions classes for *Assert classes
public class MyAssert {
// empty
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum Race {
HOBBIT("Hobbit", false, GOOD), MAIA("Maia", true, GOOD), MAN("Man", false, NEUTRAL), ELF("Elf", true, GOOD), DWARF("Dwarf", false, GOOD), ORC("Orc", false, EVIL);

private final String name;
private final boolean immortal;
public final boolean immortal;
private Alignment alignment;

Race(String name, boolean immortal, Alignment alignment) {
Expand All @@ -40,10 +40,6 @@ public String getName() {
return name;
}

public boolean isImmortal() {
return immortal;
}

public Alignment getAlignment() {
return alignment;
}
Expand Down
Loading

0 comments on commit 99ab2aa

Please sign in to comment.