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 String
aMethod()
void
aMethod2()
boolean
equals(Object obj)
protected String
establishConnection(Connection conn)
int
getConstructorValue()
static int
getSomething()
String
getString(String string)
String
getString2()
String
getString2(String string)
String
getTwoStrings()
int
hashCode()
static int
methodToBeStubbed()
int
timesThree(int anInt)
int
timesTwo(int anInt)
int
timesTwo(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()
-
-