Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ApprovingTheResult
{
@Test
@UseReporter(QuietReporter.class)
public void RenameTheApproved() throws Exception
public void renameTheApproved() throws Exception
{
// Directions:
// 1)Run the test
Expand All @@ -26,7 +26,7 @@ public void RenameTheApproved() throws Exception

@Test
@UseReporter(FileLauncherReporter.class)
public void SaveAsApproved() throws Exception
public void saveAsApproved() throws Exception
{
// Directions:
// 1)Run the test
Expand All @@ -36,7 +36,7 @@ public void SaveAsApproved() throws Exception

@Test
@UseReporter(ClipboardReporter.class)
public void MoveTheFileViaCommandLine() throws Exception
public void moveTheFileViaCommandLine() throws Exception
{
// Directions:
// 1)Run the test
Expand All @@ -46,7 +46,7 @@ public void MoveTheFileViaCommandLine() throws Exception

@Test
@UseReporter(DiffReporter.class)
public void UseWholeFileInADiffReporter() throws Exception
public void useWholeFileInADiffReporter() throws Exception
{
// Directions:
// You will need to have a diff reporter installed on you system to do this.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class UsingReporters extends Koans
{
@Test
@UseReporter(_____.class)
public void ConfiguringTheFileLauncherReporter() throws Exception
public void configuringTheFileLauncherReporter() throws Exception
{
ApprovalFailureReporter reporter = getReporter();
assertReporter(reporter, FileLauncherReporter.class);
Expand All @@ -35,22 +35,22 @@ public void ConfiguringTheFileLauncherReporter() throws Exception


@Test
public void ConfiguringAClassLevelDefault() throws Exception
public void configuringAClassLevelDefault() throws Exception
{
ApprovalFailureReporter reporter = getReporter();
assertReporter(reporter, _____.class);
}
@Test
@UseReporter({ClipboardReporter.class, ImageWebReporter.class, TortoiseImageDiffReporter.class})
public void ConfiguringMultipleReporters() throws Exception
public void configuringMultipleReporters() throws Exception
{
MultiReporter multi = (MultiReporter) getReporter();
ApprovalFailureReporter second = multi.getReporters()[1];
assertReporter(second, _____.class);
}
@Test
@UseReporter(FileLauncherReporter.class)
public void UsingTextReportersForInsight() throws Exception
public void usingTextReportersForInsight() throws Exception
{
if (!decode("=fikpKnf").equals(___))
{
Expand All @@ -61,7 +61,7 @@ public void UsingTextReportersForInsight() throws Exception
}
@Test
@UseReporter(ImageWebReporter.class)
public void UsingImageForInsight() throws Exception
public void usingImageForInsight() throws Exception
{
String whatWasTheOldColor = ___;
if (!decode("Ycl\\").equals(whatWasTheOldColor.toLowerCase()))
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/approvaltests/koans/KoansTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public void testLesson4()
{
KoanUtils.assertKoanReady(new UsingReporters(), "ConfiguringTheFileLauncherReporter");
// unsure how to test this yet
assertLesson4("UsingTextReportersForInsight", "Forty Two");
assertLesson4("UsingImageForInsight", "Blue");
assertLesson4("usingTextReportersForInsight", "Forty Two");
assertLesson4("usingImageForInsight", "Blue");

}
private void assertLesson4(String name, Object answer)
Expand Down