Skip to content

Commit

Permalink
HV-530 fixing typo and making exmaples consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik committed Dec 9, 2011
1 parent 8bfb747 commit abeb055
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Expand Up @@ -25,17 +25,17 @@
@GroupSequence({ RentalChecks.class, CarChecks.class, RentalCar.class })
public class RentalCar extends Car {
@AssertFalse(message = "The car is currently rented out", groups = RentalChecks.class)
private boolean isRented;
private boolean rented;

public RentalCar(String manufacturer, String licencePlate, int seatCount) {
super( manufacturer, licencePlate, seatCount );
}

public boolean isRented() {
return isRented;
return rented;
}

public void setRented(boolean rented) {
isRented = rented;
this.rented = rented;
}
}
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
Expand Down
Expand Up @@ -961,18 +961,18 @@ public void testOrderedChecks() {
<programlisting language="JAVA" role="JAVA">@GroupSequence({ RentalChecks.class, CarChecks.class, RentalCar.class })
public class RentalCar extends Car {
@AssertFalse(message = "The car is currently rented out", groups = RentalChecks.class)
private boolean isRented;
private boolean rented;

public RentalCar(String manufacturer, String licencePlate, int seatCount) {
super( manufacturer, licencePlate, seatCount );
}

public boolean isRented() {
return isRented;
return rented;
}

public void setRented(booelan rented) {
isRented = rented;
public void setRented(boolean rented) {
this.rented = rented;
}
}</programlisting>
</example>
Expand Down Expand Up @@ -1019,7 +1019,7 @@ public void carIsRented() {
associated objects. This means in particular that adding
<classname>DriverChecks</classname> to the default group sequence of
<classname>RentalCar</classname> would not have any effects. Only
the group <classname>Default</classname> will be propagted to the
the group <classname>Default</classname> will be propagated to the
driver association when validation a rental car instance.</para>
</note>
</section>
Expand All @@ -1044,7 +1044,8 @@ public void carIsRented() {

<programlisting language="JAVA" role="JAVA">@GroupSequenceProvider(RentalCarGroupSequenceProvider.class)
public class RentalCar extends Car {
private boolean rented;
@AssertFalse(message = "The car is currently rented out", groups = RentalChecks.class)
private boolean rented;

public RentalCar(String manufacturer, String licencePlate, int seatCount) {
super( manufacturer, licencePlate, seatCount );
Expand Down

0 comments on commit abeb055

Please sign in to comment.