Package samples.partialmocking
Class MockSelfDemo
- java.lang.Object
-
- samples.partialmocking.MockSelfDemo
-
public class MockSelfDemo extends Object
-
-
Constructor Summary
Constructors Constructor Description MockSelfDemo(int hello)MockSelfDemo(Object string)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaMethod()voidaMethod2()booleanequals(Object obj)protected StringestablishConnection(Connection conn)intgetConstructorValue()static intgetSomething()StringgetString(String string)StringgetString2()StringgetString2(String string)StringgetTwoStrings()inthashCode()static intmethodToBeStubbed()inttimesThree(int anInt)inttimesTwo(int anInt)inttimesTwo(Integer anInt)
-
-
-
Constructor Detail
-
MockSelfDemo
public MockSelfDemo(int hello)
-
MockSelfDemo
public MockSelfDemo(Object string)
-
-
Method Detail
-
establishConnection
protected String establishConnection(Connection conn) throws Exception
- Throws:
Exception
-
aMethod
public String aMethod()
-
aMethod2
public void aMethod2()
-
getTwoStrings
public String getTwoStrings()
-
getString2
public String getString2()
-
timesTwo
public int timesTwo(Integer anInt)
-
timesTwo
public int timesTwo(int anInt)
-
timesThree
public int timesThree(int anInt)
-
getConstructorValue
public int getConstructorValue()
-
getSomething
public static int getSomething()
-
methodToBeStubbed
public static int methodToBeStubbed()
-
-