[Clirr-devel] CVS: clirr/src/testinput/testlib-v2/testlib MethodsChange.java,NONE,1.1
Status: Alpha
Brought to you by:
lkuehne
From: Lars K?h. <lk...@us...> - 2004-01-18 12:02:01
|
Update of /cvsroot/clirr/clirr/src/testinput/testlib-v2/testlib In directory sc8-pr-cvs1:/tmp/cvs-serv11339/testlib-v2/testlib Added Files: MethodsChange.java Log Message: added test class for Method checking --- NEW FILE --- package testlib; import java.io.IOException; public class MethodsChange { private int priv; public MethodsChange() { priv = 2; } protected MethodsChange(int initialpriv, boolean newArg) { priv = initialpriv; } protected MethodsChange(Integer initialpriv) { priv = initialpriv.intValue(); } public int getPriv() { return priv; } private int getPriv2() { return priv; } public Integer getPrivAsNumber() { return new Integer(priv); } public Number getPrivAsInteger() { return new Integer(priv); } public Long getPrivSquare() { return new Long(priv * priv); } public void printPriv(String prefix) { System.out.println(prefix + priv); } public void weakenParamType(Object s) { } public void strengthenParamType(String s) { } public void changeParamType(Integer x) { } public void throwIOException() throws Exception { throw new java.io.IOException(); } public void throwException() throws IOException { throw new java.io.IOException(); } public void throwException2() { } public void throwRuntimeException() { throw new RuntimeException(); } public void throwNoRuntimeException() throws RuntimeException { throw new RuntimeException(); } public void throwNoException() throws Exception { throw new Exception(); } } |