-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROASTER-33: Added tests to assert Boolean conditions
- Loading branch information
Showing
3 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
impl/src/test/resources/org/jboss/forge/grammar/java/BooleanClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2014 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.jboss.forge.grammar.java; | ||
|
||
public class BooleanClass | ||
{ | ||
private String myString; | ||
private Boolean myBoolean; | ||
|
||
public String getMyString() | ||
{ | ||
return myString; | ||
} | ||
|
||
public void setMyString(String myString) | ||
{ | ||
this.myString = myString; | ||
} | ||
|
||
public Boolean getMyBoolean() | ||
{ | ||
return myBoolean; | ||
} | ||
|
||
public void setMyBoolean(Boolean myBoolean) | ||
{ | ||
this.myBoolean = myBoolean; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
impl/src/test/resources/org/jboss/forge/grammar/java/BooleanPrimitiveClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2014 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.jboss.forge.grammar.java; | ||
|
||
public class BooleanPrimitiveClass | ||
{ | ||
private String myString; | ||
private boolean myBoolean; | ||
|
||
public String getMyString() | ||
{ | ||
return myString; | ||
} | ||
|
||
public void setMyString(String myString) | ||
{ | ||
this.myString = myString; | ||
} | ||
|
||
public boolean isMyBoolean() | ||
{ | ||
return myBoolean; | ||
} | ||
|
||
public void setMyBoolean(boolean myBoolean) | ||
{ | ||
this.myBoolean = myBoolean; | ||
} | ||
} |