A C D E F G I M N O R S T W
A
- addListener(FakeClock.TimeListener) - Method in class net.morimekta.testing.time.FakeClock
- allItemsMatch(Matcher<T>) - Static method in class net.morimekta.testing.ExtraMatchers
-
Matcher that checks all items in a collection to match the item-matcher.
- AllItemsMatch<T> - Class in net.morimekta.testing.matchers
-
All items in a collection matches the given matcher.
- AllItemsMatch(Matcher<T>) - Constructor for class net.morimekta.testing.matchers.AllItemsMatch
- awaitTermination(long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- awaitTermination(long, TimeUnit) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
C
- close() - Method in class net.morimekta.testing.rules.ConsoleWatcher
- ConsoleWatcher - Class in net.morimekta.testing.rules
-
Printed output watcher rule.
- ConsoleWatcher() - Constructor for class net.morimekta.testing.rules.ConsoleWatcher
- copyResourceTo(String, File) - Static method in class net.morimekta.testing.ResourceUtils
-
Copy a resource to the target directory.
D
- describeMismatch(Object, Description) - Method in class net.morimekta.testing.matchers.AllItemsMatch
- describeMismatch(Object, Description) - Method in class net.morimekta.testing.matchers.DistinctFrom
- describeMismatch(Object, Description) - Method in class net.morimekta.testing.matchers.EqualIgnoreIndent
- describeMismatch(Object, Description) - Method in class net.morimekta.testing.matchers.EqualToLines
- describeMismatch(Object, Description) - Method in class net.morimekta.testing.matchers.InRange
- describeMismatch(Object, Description) - Method in class net.morimekta.testing.matchers.MatchesRegex
- describeTo(Description) - Method in class net.morimekta.testing.matchers.AllItemsMatch
- describeTo(Description) - Method in class net.morimekta.testing.matchers.DistinctFrom
- describeTo(Description) - Method in class net.morimekta.testing.matchers.EqualIgnoreIndent
- describeTo(Description) - Method in class net.morimekta.testing.matchers.EqualToLines
- describeTo(Description) - Method in class net.morimekta.testing.matchers.InRange
- describeTo(Description) - Method in class net.morimekta.testing.matchers.MatchesRegex
- distinctFrom(Set<T>) - Static method in class net.morimekta.testing.ExtraMatchers
-
Matcher to check that two sets does not have any common elements.
- DistinctFrom<T> - Class in net.morimekta.testing.matchers
-
Matcher to check that two sets does not have any common elements.
- DistinctFrom(Set<T>) - Constructor for class net.morimekta.testing.matchers.DistinctFrom
- dumpErrorOnFailure() - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Dump stderr to error output on failure.
- dumpOnFailure() - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Dump both stdout and stderr to error output on failure.
- dumpOutputOnFailure() - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Dump stdout to error output on failure.
E
- equalIgnoreIndent(String) - Static method in class net.morimekta.testing.ExtraMatchers
-
Equivalent to 'equalToLines' but also ignores any indentation each line has.
- EqualIgnoreIndent - Class in net.morimekta.testing.matchers
-
Equality matcher that ignores line indent.
- EqualIgnoreIndent(String) - Constructor for class net.morimekta.testing.matchers.EqualIgnoreIndent
- equalToLines(String) - Static method in class net.morimekta.testing.ExtraMatchers
-
Equivalent to 'equalTo' for strings that normalize the new-line to '\n', this can make testing that should match output on various platforms easier to wrote.
- EqualToLines - Class in net.morimekta.testing.matchers
-
Equality matcher that that ignores changes in line separators, and shows a line by line diff on mismatch.
- EqualToLines(String) - Constructor for class net.morimekta.testing.matchers.EqualToLines
- error() - Method in class net.morimekta.testing.rules.ConsoleWatcher
- execute(Runnable) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- execute(Runnable) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- ExtraMatchers - Class in net.morimekta.testing
-
Extra hamcrest matchers.
F
- failed(Throwable, Description) - Method in class net.morimekta.testing.rules.ConsoleWatcher
- FakeClock - Class in net.morimekta.testing.time
-
Fake clock implementation for testing.
- FakeClock() - Constructor for class net.morimekta.testing.time.FakeClock
- FakeClock.TimeListener - Interface in net.morimekta.testing.time
- FakeScheduledExecutor - Class in net.morimekta.testing.concurrent
-
A scheduled executor that uses a fake clock as back-bone to the executor.
- FakeScheduledExecutor(FakeClock) - Constructor for class net.morimekta.testing.concurrent.FakeScheduledExecutor
- finished(Description) - Method in class net.morimekta.testing.rules.ConsoleWatcher
- forCurrentTimeMillis(long) - Static method in class net.morimekta.testing.time.FakeClock
G
- getError() - Method in class net.morimekta.testing.IntegrationExecutor
- getOutput() - Method in class net.morimekta.testing.IntegrationExecutor
- getResourceAsByteBuffer(String) - Static method in class net.morimekta.testing.ResourceUtils
-
Get the resource content as a byte buffer.
- getResourceAsBytes(String) - Static method in class net.morimekta.testing.ResourceUtils
-
Get the resource content as a byte array.
- getResourceAsStream(String) - Static method in class net.morimekta.testing.ResourceUtils
-
Get the resource as a buffered input stream.
- getResourceAsString(String) - Static method in class net.morimekta.testing.ResourceUtils
-
Get the resource content as a string.
- getZone() - Method in class net.morimekta.testing.time.FakeClock
I
- ImmediateExecutor - Class in net.morimekta.testing.concurrent
-
Fake executor service that runs all tasks immediately.
- ImmediateExecutor() - Constructor for class net.morimekta.testing.concurrent.ImmediateExecutor
- inRange(T, T) - Static method in class net.morimekta.testing.ExtraMatchers
-
Checks that the value is in a given numeric value range.
- InRange<T extends java.lang.Number> - Class in net.morimekta.testing.matchers
-
Numeric Value range matcher.
- InRange(T, T) - Constructor for class net.morimekta.testing.matchers.InRange
- instant() - Method in class net.morimekta.testing.time.FakeClock
- IntegrationExecutor - Class in net.morimekta.testing
-
Helper to handle process forking related to testing a jar file.
- IntegrationExecutor(File) - Constructor for class net.morimekta.testing.IntegrationExecutor
- IntegrationExecutor(String, String) - Constructor for class net.morimekta.testing.IntegrationExecutor
- interactive() - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Set input mode to interactive.
- invokeAll(Collection<? extends Callable<T>>) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- invokeAll(Collection<? extends Callable<T>>) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- invokeAny(Collection<? extends Callable<T>>) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- invokeAny(Collection<? extends Callable<T>>) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- isShutdown() - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- isShutdown() - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- isTerminated() - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- isTerminated() - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
M
- matches(Object) - Method in class net.morimekta.testing.matchers.AllItemsMatch
- matches(Object) - Method in class net.morimekta.testing.matchers.DistinctFrom
- matches(Object) - Method in class net.morimekta.testing.matchers.EqualIgnoreIndent
- matches(Object) - Method in class net.morimekta.testing.matchers.EqualToLines
- matches(Object) - Method in class net.morimekta.testing.matchers.InRange
- matches(Object) - Method in class net.morimekta.testing.matchers.MatchesRegex
- matchesRegex(String) - Static method in class net.morimekta.testing.ExtraMatchers
-
Matcher that uses a pattern to match against a string.
- matchesRegex(Pattern) - Static method in class net.morimekta.testing.ExtraMatchers
-
Matcher that uses a pattern to match against a string.
- MatchesRegex - Class in net.morimekta.testing.matchers
-
Checks that the matching string matches the regex.
- MatchesRegex(String) - Constructor for class net.morimekta.testing.matchers.MatchesRegex
- MatchesRegex(Pattern) - Constructor for class net.morimekta.testing.matchers.MatchesRegex
N
- net.morimekta.testing - package net.morimekta.testing
- net.morimekta.testing.concurrent - package net.morimekta.testing.concurrent
- net.morimekta.testing.matchers - package net.morimekta.testing.matchers
- net.morimekta.testing.rules - package net.morimekta.testing.rules
- net.morimekta.testing.time - package net.morimekta.testing.time
- newCurrentTimeUTC(long) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- newCurrentTimeUTC(long) - Method in interface net.morimekta.testing.time.FakeClock.TimeListener
- nonInteractive() - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Set input mode to non-interactive.
O
- oneOf(T...) - Static method in class net.morimekta.testing.ExtraMatchers
-
Alternative to hamcrest 'oneOf' that simplifies to match any one of the values given.
- output() - Method in class net.morimekta.testing.rules.ConsoleWatcher
R
- removeListener(FakeClock.TimeListener) - Method in class net.morimekta.testing.time.FakeClock
- reset() - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Reset all the streams for the console.
- ResourceUtils - Class in net.morimekta.testing
-
Utility for help with managing resources during tests.
- run(String...) - Method in class net.morimekta.testing.IntegrationExecutor
-
Run the program with the specified arguments.
S
- schedule(Runnable, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- schedule(Callable<V>, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- setDeadlineMs(long) - Method in class net.morimekta.testing.IntegrationExecutor
-
Set the program deadline.
- setInput(byte[]) - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Set input to return the given bytes.
- setInput(InputStream) - Method in class net.morimekta.testing.IntegrationExecutor
-
Set input stream to write to the process as program input.
- setInput(Object...) - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Set input with dynamic content.
- shutdown() - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- shutdown() - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- shutdownNow() - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- shutdownNow() - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- starting(Description) - Method in class net.morimekta.testing.rules.ConsoleWatcher
- submit(Runnable) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- submit(Runnable) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- submit(Runnable, T) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- submit(Runnable, T) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
- submit(Callable<T>) - Method in class net.morimekta.testing.concurrent.FakeScheduledExecutor
- submit(Callable<T>) - Method in class net.morimekta.testing.concurrent.ImmediateExecutor
T
- tick(long) - Method in class net.morimekta.testing.time.FakeClock
-
Tick the fake clock the given number of milliseconds.
- tick(long, TimeUnit) - Method in class net.morimekta.testing.time.FakeClock
- tty() - Method in class net.morimekta.testing.rules.ConsoleWatcher
W
- withTerminalSize(int, int) - Method in class net.morimekta.testing.rules.ConsoleWatcher
-
Set the current terminal size.
- withZone(ZoneId) - Method in class net.morimekta.testing.time.FakeClock
- writeContentTo(String, File) - Static method in class net.morimekta.testing.ResourceUtils
-
Write the file content to the target file.