Package mockit
Class JREMockingTest
java.lang.Object
mockit.JREMockingTest
The Class JREMockingTest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The Interface DurationProvider. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attemptToMockUnmockableJREClass
(DataInputStream unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(FileInputStream unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(FileOutputStream unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(FileWriter unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(PrintWriter unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Writer unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Class<?> unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(ClassLoader unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Enum<?> unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Exception unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Math unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Object unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(StrictMath unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(StringBuffer unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(StringBuilder unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(System unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Thread unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(ThreadLocal<?> unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Throwable unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Duration unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Attributes unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(JarEntry unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(JarFile unmockable) Attempt to mock unmockable JRE class.void
attemptToMockUnmockableJREClass
(Manifest unmockable) Attempt to mock unmockable JRE class.void
Dynamic mocking of annotated JRE method.void
Dynamic mocking of file output stream through mock field.void
Faking of calendar.void
Mocking file and recording expectation to match on specific constructor call.void
mockingOfFile
(File file) Mocking of file.void
mockLogger
(Logger mock) Mock logger.void
mockLogManager
(LogManager mock) Mock log manager.void
Mock method which returns A duration.void
Regular mocking of annotated JRE method.
-
Constructor Details
-
JREMockingTest
public JREMockingTest()
-
-
Method Details
-
mockingOfFile
Mocking of file.- Parameters:
file
- the file
-
mockingFileAndRecordingExpectationToMatchOnSpecificConstructorCall
Mocking file and recording expectation to match on specific constructor call.- Parameters:
anyFile
- the any file
-
fakingOfCalendar
public void fakingOfCalendar()Faking of calendar. -
regularMockingOfAnnotatedJREMethod
Regular mocking of annotated JRE method.- Parameters:
d
- the d- Throws:
Exception
- the exception
-
dynamicMockingOfAnnotatedJREMethod
Dynamic mocking of annotated JRE method.- Throws:
Exception
- the exception
-
dynamicMockingOfFileOutputStreamThroughMockField
Dynamic mocking of file output stream through mock field.- Throws:
Exception
- the exception
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
attemptToMockUnmockableJREClass
Attempt to mock unmockable JRE class.- Parameters:
unmockable
- the unmockable
-
mockMethodWhichReturnsADuration
Mock method which returns A duration.- Parameters:
mock
- the mock
-
mockLogManager
Mock log manager.- Parameters:
mock
- the mock
-
mockLogger
Mock logger.- Parameters:
mock
- the mock
-