Package samples.partialmocking
Class MockSelfDemo
java.lang.Object
samples.partialmocking.MockSelfDemo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaMethod()
void
aMethod2()
boolean
protected String
int
static int
private String
getString2
(String string) int
hashCode()
static int
int
timesThree
(int anInt) int
timesTwo
(int anInt) int
-
Field Details
-
hello
private int hello
-
-
Constructor Details
-
MockSelfDemo
private MockSelfDemo() -
MockSelfDemo
public MockSelfDemo(int hello) -
MockSelfDemo
-
-
Method Details
-
hashCode
public int hashCode() -
establishConnection
- Throws:
Exception
-
equals
-
aMethod
-
aMethod2
public void aMethod2() -
getTwoStrings
-
getString
-
getString
-
getString2
-
getString2
-
timesTwo
-
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()
-