Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DROOLS-1302 OOPath ReactiveList remove cases (#932)
* DROOLS-1302 OOPath ReactiveList remove cases Basic remove case now covered. * Extended remove case coverage.
- Loading branch information
1 parent
b08c1cc
commit 51c13f8
Showing
7 changed files
with
178 additions
and
10 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
drools-compiler/src/test/java/org/drools/compiler/xpath/Group.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,31 @@ | ||
package org.drools.compiler.xpath; | ||
|
||
import java.util.List; | ||
|
||
import org.drools.core.phreak.AbstractReactiveObject; | ||
import org.drools.core.phreak.ReactiveList; | ||
|
||
public class Group extends AbstractReactiveObject { | ||
private final String name; | ||
private final List<Person> members = new ReactiveList<Person>(); | ||
|
||
public Group(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public List<Person> getMembers() { | ||
return members; | ||
} | ||
|
||
public void addPerson(Person p) { | ||
members.add(p); | ||
} | ||
|
||
public void removePerson(Person p) { | ||
members.remove(p); | ||
} | ||
} |
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
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
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
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
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
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