Skip to content

Commit 70e23a8

Browse files
author
David Reed
committed
Fixing spelling errors
1 parent edfc26f commit 70e23a8

26 files changed

Lines changed: 63 additions & 63 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ Running Instructions:
1111
Developing a Koan:
1212
==================
1313
1. Follow any of the existing koans as an example to create a new class w/ koan methods (indicated by the @Koan annotation)
14-
2. Define the order and metadata associated with each koan in the PathToEnlightment.xml
14+
2. Define the order and metadata associated with each koan in the PathToEnlightenment.xml
1515
3. If necessary - use dynamic content in your lesson, examples are located in XmlVariableInjector class (and Test) and the AboutKoans.java file

koans-lib/src/com/sandwich/koan/cmdline/CommandLineArgumentBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public CommandLineArgumentBuilder(String...args){
3737
// - in other words, argumentType will be argumentTypePlusOne in next iteration
3838
continue;
3939
}
40-
// ok 2nd argument wasn't a recongized argument type - go
40+
// ok 2nd argument wasn't a recognized argument type - go
4141
// ahead and see if it's a class, if not, it must be a
4242
// method - or bogus
4343
else if(stringArgPlusOne != null){

koans-lib/src/com/sandwich/koan/path/PathToEnlightenment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static void filterByKoan(String koan){
6161
xmlToPathTransformer = null;
6262
}
6363

64-
public static Path getPathToEnlightment(){
64+
public static Path getPathToEnlightenment(){
6565
if(theWay == null){
6666
theWay = createPath();
6767
}

koans-lib/src/com/sandwich/koan/runner/RunKoans.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ KoanSuiteResult runKoans() {
4747
String level = null;
4848
KoanMethodResult failure = null;
4949
DynamicClassLoader loader = new DynamicClassLoader();
50-
Path pathToEnlightement = getPathToEnlightement();
50+
Path pathToEnlightenment = getPathToEnlightenment();
5151
KoanSuiteCompilationListener compilationListener = new KoanSuiteCompilationListener();
52-
for (Entry<String, Map<String, Map<String, KoanElementAttributes>>> packages : pathToEnlightement) {
52+
for (Entry<String, Map<String, Map<String, KoanElementAttributes>>> packages : pathToEnlightenment) {
5353
for (Entry<String, Map<String, KoanElementAttributes>> e : packages.getValue().entrySet()) {
5454
String name = e.getKey().substring(e.getKey().lastIndexOf('.')+1);
5555
if(failure == null){
@@ -61,7 +61,7 @@ KoanSuiteResult runKoans() {
6161
suite = constructSuite(loader, e.getKey(), compilationListener);
6262
}
6363
final List<KoanElementAttributes> attributes = new ArrayList<KoanElementAttributes>(e.getValue().values());
64-
final List<KoanMethod> methods = mergeJavaFilesMethodsAndThoseInXml(suite, attributes, pathToEnlightement.getOnlyMethodNameToRun());
64+
final List<KoanMethod> methods = mergeJavaFilesMethodsAndThoseInXml(suite, attributes, pathToEnlightenment.getOnlyMethodNameToRun());
6565
Collections.sort(methods, new KoanComparator());
6666
for (final KoanMethod koan : methods) {
6767
KoanMethodResult result = KoanMethodRunner.run(suite, koan);
@@ -85,7 +85,7 @@ KoanSuiteResult runKoans() {
8585
}
8686
return new KoanResultBuilder() .level(level)
8787
.numberPassing((int)successfull.getCount())
88-
.totalNumberOfKoanMethods(pathToEnlightement.getTotalNumberOfKoans())
88+
.totalNumberOfKoanMethods(pathToEnlightenment.getTotalNumberOfKoans())
8989
.methodResult(failure)
9090
.passingCases(passingSuites).remainingCases(failingSuites).build();
9191
}
@@ -141,9 +141,9 @@ private Object constructSuite(DynamicClassLoader loader, String className, Compi
141141
return suite;
142142
}
143143

144-
private Path getPathToEnlightement() {
144+
private Path getPathToEnlightenment() {
145145
if(pathToEnlightenment == null){
146-
pathToEnlightenment = PathToEnlightenment.getPathToEnlightment();
146+
pathToEnlightenment = PathToEnlightenment.getPathToEnlightenment();
147147
}
148148
return pathToEnlightenment;
149149
}

koans-tests/data/src/com/sandwich/koan/path/CommandLineTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected void setRealPath(){
5555
}
5656

5757
protected Path stubAllKoans(String packageName, List<String> path){
58-
Path oldKoans = PathToEnlightenment.getPathToEnlightment();
58+
Path oldKoans = PathToEnlightenment.getPathToEnlightenment();
5959
Map<String, Map<String, KoanElementAttributes>> tempSuitesAndMethods =
6060
new LinkedHashMap<String, Map<String, KoanElementAttributes>>();
6161
DynamicClassLoader loader = new DynamicClassLoader();

koans-tests/data/src/com/sandwich/koan/path/DefaultKoanDescriptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void tearDown(){
2828
public void defaultKoanDescriptions() throws Exception {
2929
StringBuilder exceptionStringBuilder = new StringBuilder(KoanConstants.EOL);
3030
for (Entry<String, Map<String, KoanElementAttributes>> suiteAndKoans :
31-
PathToEnlightenment.getPathToEnlightment().getKoanMethodsBySuiteByPackage().next().getValue().entrySet()) {
31+
PathToEnlightenment.getPathToEnlightenment().getKoanMethodsBySuiteByPackage().next().getValue().entrySet()) {
3232
for(Entry<String, KoanElementAttributes> koanEntry : suiteAndKoans.getValue().entrySet()){
3333
KoanMethod koan = KoanMethod.getInstance(koanEntry.getValue());
3434
Koan annotation = koan.getMethod().getAnnotation(Koan.class);

koans-tests/data/src/com/sandwich/koan/runner/AppReadinessForDeploymentTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static class TwoFailingKoans extends OneFailingKoan {
7171
@Test
7272
public void testGetKoans() throws Exception {
7373
stubAllKoans(Arrays.asList(new OnePassingKoan()));
74-
Map<String, Map<String, KoanElementAttributes>> koans = PathToEnlightenment.getPathToEnlightment().iterator().next().getValue();
74+
Map<String, Map<String, KoanElementAttributes>> koans = PathToEnlightenment.getPathToEnlightenment().iterator().next().getValue();
7575
assertEquals(1, koans.size());
7676
Entry<String, Map<String, KoanElementAttributes>> entry = koans.entrySet().iterator().next();
7777
assertEquals(OnePassingKoan.class.getName(), entry.getKey());
@@ -91,10 +91,10 @@ public void displayResult(KoanSuiteResult actualAppResult) {
9191
};
9292
doAsIfInProd(new Runnable(){
9393
public void run(){
94-
new RunKoans(presenter, PathToEnlightenment.getPathToEnlightment()).run(null);
94+
new RunKoans(presenter, PathToEnlightenment.getPathToEnlightenment()).run(null);
9595
}
9696
});
97-
String firstSuiteClassRan = PathToEnlightenment.getPathToEnlightment()
97+
String firstSuiteClassRan = PathToEnlightenment.getPathToEnlightenment()
9898
.iterator().next().getValue().entrySet().iterator().next().getKey();
9999
assertEquals(result[0].getFailingCase(), firstSuiteClassRan.substring(firstSuiteClassRan.lastIndexOf(".") + 1));
100100
}
@@ -111,7 +111,7 @@ public void displayResult(KoanSuiteResult actualAppResult) {
111111
};
112112
doAsIfInProd(new Runnable(){
113113
public void run(){
114-
new RunKoans(presenter, PathToEnlightenment.getPathToEnlightment()).run(null);
114+
new RunKoans(presenter, PathToEnlightenment.getPathToEnlightenment()).run(null);
115115
}
116116
});
117117
String message = "Not all koans need solving! Each should ship in a failing state.";

koans-tests/data/src/com/sandwich/koan/runner/CommandLineTestCaseTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,25 @@ public void testThatTearDownDetachesDummiedConsoleFromSystem(){
7373

7474
@Test
7575
public void testThatStubAllKoansStubsAllKoansReference() throws Exception {
76-
Path oldKoans = PathToEnlightenment.getPathToEnlightment();
76+
Path oldKoans = PathToEnlightenment.getPathToEnlightenment();
7777
List<Object> newKoans = Collections.emptyList();
7878
testCase.stubAllKoans(newKoans);
79-
assertNotSame(oldKoans, PathToEnlightenment.getPathToEnlightment());
79+
assertNotSame(oldKoans, PathToEnlightenment.getPathToEnlightenment());
8080
// number of suites
81-
assertEquals(0, PathToEnlightenment.getPathToEnlightment()
81+
assertEquals(0, PathToEnlightenment.getPathToEnlightenment()
8282
.iterator().next().getValue().size());
8383
}
8484

8585
@Test
8686
public void testTestCaseRestoresAllKoansReference() throws Exception {
87-
Path oldKoans = PathToEnlightenment.getPathToEnlightment();
87+
Path oldKoans = PathToEnlightenment.getPathToEnlightenment();
8888
List<Object> newKoans = Collections.emptyList();
8989
testCase.stubAllKoans(newKoans);
90-
assertNotSame(oldKoans, PathToEnlightenment.getPathToEnlightment());
90+
assertNotSame(oldKoans, PathToEnlightenment.getPathToEnlightenment());
9191
testCase.tearDown();
9292
// creates all new instance
93-
assertNotSame(oldKoans, PathToEnlightenment.getPathToEnlightment());
94-
assertEquals(oldKoans, PathToEnlightenment.getPathToEnlightment());
93+
assertNotSame(oldKoans, PathToEnlightenment.getPathToEnlightenment());
94+
assertEquals(oldKoans, PathToEnlightenment.getPathToEnlightenment());
9595
}
9696

9797
@Test

koans-tests/test/com/sandwich/koan/TestUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public void testForEachLine_emptyString() throws Exception {
377377
}
378378

379379
@Test
380-
public void testForEachLine_nothingThreeNewLinesSeperatedBy1Space() throws Exception {
380+
public void testForEachLine_nothingThreeNewLinesSeparatedBy1Space() throws Exception {
381381
@SuppressWarnings("unchecked")
382382
ArgRunner<String> runner = EasyMock.createStrictMock(ArgRunner.class);
383383

@@ -400,7 +400,7 @@ public void testForEachLine_nothingThreeNewLinesSeperatedBy1Space() throws Excep
400400
}
401401

402402
@Test
403-
public void testForEachLine_nothingThreeNewLinesSeperatedBy1SpaceThen2Spaces() throws Exception {
403+
public void testForEachLine_nothingThreeNewLinesSeparatedBy1SpaceThen2Spaces() throws Exception {
404404
@SuppressWarnings("unchecked")
405405
ArgRunner<String> runner = EasyMock.createStrictMock(ArgRunner.class);
406406

koans-tests/test/com/sandwich/koan/constant/ArgumentTypeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void testClassPrecedesMethod() throws Exception {
2222
assertEquals(1, classVsMethod.indexOf(ArgumentType.CLASS_ARG));
2323
Collections.sort(classVsMethod);
2424
// now - because of comparable impl was applied, class precedes method - this is necessary
25-
// @ see KaonSuiteRunner.run()
25+
// @ see KoanSuiteRunner.run()
2626
assertEquals(1, classVsMethod.indexOf(ArgumentType.METHOD_ARG));
2727
assertEquals(0, classVsMethod.indexOf(ArgumentType.CLASS_ARG));
2828
}

0 commit comments

Comments
 (0)