Commit e003c5b6 by eguven Committed by Oliver Woodman

Javadoc for FakeExtractorOutput.assertOutput()

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130933435
parent abdb8ddb
......@@ -95,6 +95,15 @@ public final class FakeExtractorOutput implements ExtractorOutput, Dumper.Dumpab
}
}
/**
* Asserts that dump of this {@link FakeExtractorOutput} is equal to expected dump which is read
* from {@code dumpFile}.
*
* <p>If assertion fails because of an intended change in the output or a new dump file needs to
* be created, set {@link #WRITE_DUMP} flag to true and run the test again. Instead of assertion,
* actual dump will be written to {@code dumpFile}. This new dump file needs to be copied to the
* project, {@code library/src/androidTest/assets} folder manually.
*/
public void assertOutput(Instrumentation instrumentation, String dumpFile) throws IOException {
String actual = new Dumper().add(this).toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment