Added action-influence lifecycle test
This commit is contained in:
23
src/nodash/test/NoInfluenceTest.java
Normal file
23
src/nodash/test/NoInfluenceTest.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package nodash.test;
|
||||
|
||||
import nodash.models.NoInfluence;
|
||||
import nodash.models.NoUser;
|
||||
|
||||
public class NoInfluenceTest extends NoInfluence {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 5710677031891178814L;
|
||||
private String newName;
|
||||
|
||||
public NoInfluenceTest(String newName) {
|
||||
super();
|
||||
this.newName = newName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyTo(NoUser user) {
|
||||
((NoUserTest) user).setChangableString(this.newName);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user