Package samples.system
Class SystemClassUser
java.lang.Object
samples.system.SystemClassUser
Class used to demonstrate PowerMock's ability to mock system classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyProperty
(String to, String from) void
private int
lengthOf
(CharSequence to) int
void
shuffleCollection
(List<?> list) void
-
Constructor Details
-
SystemClassUser
public SystemClassUser()
-
-
Method Details
-
threadSleep
- Throws:
InterruptedException
-
performEncode
- Throws:
UnsupportedEncodingException
-
executeCommand
- Throws:
IOException
-
getSystemProperty
- Throws:
IOException
-
doMoreComplicatedStuff
- Throws:
IOException
-
copyProperty
- Throws:
IOException
-
format
- Throws:
IOException
-
newURL
- Throws:
MalformedURLException
-
newStringBuilder
-
shuffleCollection
-
useURL
- Throws:
IOException
-
getLocalHost
- Throws:
IOException
-
generatePerishableToken
-
lengthOf
-
lengthOf
-