Skip to content

Commit 06855b9

Browse files
committed
New format
1 parent 7140659 commit 06855b9

943 files changed

Lines changed: 3193 additions & 2549 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Copyright.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//: Copyright.txt
2-
This computer source code is Copyright 2015 MindView LLC
1+
// Copyright.txt
2+
This computer source code is Copyright 2015 MindView LLC
33
All Rights Reserved.
44

55
Permission to use, copy, modify, and distribute this
@@ -70,4 +70,3 @@ where it is freely available under the terms stated above.
7070
If you think you've found an error in the Source Code,
7171
please submit a correction at:
7272
https://github.com/BruceEckel/OnJava-Examples/issues
73-
///:~

annotations/AtUnitComposition.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitComposition.java
1+
// annotations/AtUnitComposition.java
22
// ©2015 MindView LLC: see Copyright.txt
33
// Creating non-embedded tests.
44
package annotations;
@@ -18,9 +18,10 @@ public static void main(String[] args) throws Exception {
1818
OSExecute.command(
1919
"java com.mindviewinc.atunit.AtUnit AtUnitComposition");
2020
}
21-
} /* Output:
21+
}
22+
/* Output:
2223
annotations.AtUnitComposition
2324
. _methodOne
2425
. _methodTwo This is methodTwo
2526
OK (2 tests)
26-
*///:~
27+
*/

annotations/AtUnitExample1.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitExample1.java
1+
// annotations/AtUnitExample1.java
22
// ©2015 MindView LLC: see Copyright.txt
33
package annotations;
44
import com.mindviewinc.atunit.*;
@@ -24,7 +24,8 @@ public static void main(String[] args) throws Exception {
2424
OSExecute.command(
2525
"java com.mindviewinc.atunit.AtUnit AtUnitExample1");
2626
}
27-
} /* Output:
27+
}
28+
/* Output:
2829
annotations.AtUnitExample1
2930
. anotherDisappointment (failed)
3031
. failureTest (failed)
@@ -35,4 +36,4 @@ public static void main(String[] args) throws Exception {
3536
>>> 2 FAILURES <<<
3637
annotations.AtUnitExample1: anotherDisappointment
3738
annotations.AtUnitExample1: failureTest
38-
*///:~
39+
*/

annotations/AtUnitExample2.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitExample2.java
1+
// annotations/AtUnitExample2.java
22
// ©2015 MindView LLC: see Copyright.txt
33
// Assertions and exceptions can be used in @Tests.
44
package annotations;
@@ -32,7 +32,8 @@ public static void main(String[] args) throws Exception {
3232
OSExecute.command(
3333
"java com.mindviewinc.atunit.AtUnit AtUnitExample2");
3434
}
35-
} /* Output:
35+
}
36+
/* Output:
3637
annotations.AtUnitExample2
3738
. assertFailureExample java.lang.AssertionError: What a
3839
surprise!
@@ -46,4 +47,4 @@ public static void main(String[] args) throws Exception {
4647
>>> 2 FAILURES <<<
4748
annotations.AtUnitExample2: assertFailureExample
4849
annotations.AtUnitExample2: exceptionExample
49-
*///:~
50+
*/

annotations/AtUnitExample3.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitExample3.java
1+
// annotations/AtUnitExample3.java
22
// ©2015 MindView LLC: see Copyright.txt
33
package annotations;
44
import com.mindviewinc.atunit.*;
@@ -27,10 +27,11 @@ public static void main(String[] args) throws Exception {
2727
OSExecute.command(
2828
"java com.mindviewinc.atunit.AtUnit AtUnitExample3");
2929
}
30-
} /* Output:
30+
}
31+
/* Output:
3132
annotations.AtUnitExample3
3233
. methodOneTest
3334
. initialization
3435
. m2 This is methodTwo
3536
OK (3 tests)
36-
*///:~
37+
*/

annotations/AtUnitExample4.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitExample4.java
1+
// annotations/AtUnitExample4.java
22
// ©2015 MindView LLC: see Copyright.txt
33
package annotations;
44
import java.util.*;
@@ -58,7 +58,8 @@ public static void main(String[] args) throws Exception {
5858
OSExecute.command(
5959
"java com.mindviewinc.atunit.AtUnit AtUnitExample4");
6060
}
61-
} /* Output:
61+
}
62+
/* Output:
6263
starting
6364
annotations.AtUnitExample4
6465
. scramble1 'All'
@@ -67,4 +68,4 @@ public static void main(String[] args) throws Exception {
6768
tsaeborornussu
6869
. words 'are'
6970
OK (3 tests)
70-
*///:~
71+
*/

annotations/AtUnitExample5.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitExample5.java
1+
// annotations/AtUnitExample5.java
22
// ©2015 MindView LLC: see Copyright.txt
33
package annotations;
44
import java.io.*;
@@ -42,7 +42,8 @@ public static void main(String[] args) throws Exception {
4242
OSExecute.command(
4343
"java com.mindviewinc.atunit.AtUnit AtUnitExample5");
4444
}
45-
} /* Output:
45+
}
46+
/* Output:
4647
annotations.AtUnitExample5
4748
. test3
4849
Running cleanup
@@ -51,4 +52,4 @@ public static void main(String[] args) throws Exception {
5152
. test2
5253
Running cleanup
5354
OK (3 tests)
54-
*///:~
55+
*/

annotations/AtUnitExternalTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/AtUnitExternalTest.java
1+
// annotations/AtUnitExternalTest.java
22
// ©2015 MindView LLC: see Copyright.txt
33
// Creating non-embedded tests.
44
package annotations;
@@ -14,9 +14,10 @@ public static void main(String[] args) throws Exception {
1414
OSExecute.command(
1515
"java com.mindviewinc.atunit.AtUnit AtUnitExternalTest");
1616
}
17-
} /* Output:
17+
}
18+
/* Output:
1819
annotations.AtUnitExternalTest
1920
. _methodTwo This is methodTwo
2021
. _methodOne
2122
OK (2 tests)
22-
*///:~
23+
*/

annotations/HashSetTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/HashSetTest.java
1+
// annotations/HashSetTest.java
22
// ©2015 MindView LLC: see Copyright.txt
33
package annotations;
44
import java.util.*;
@@ -23,10 +23,11 @@ public static void main(String[] args) throws Exception {
2323
OSExecute.command(
2424
"java com.mindviewinc.atunit.AtUnit HashSetTest");
2525
}
26-
} /* Output:
26+
}
27+
/* Output:
2728
annotations.HashSetTest
2829
. initialization
2930
. _remove
3031
. _contains
3132
OK (3 tests)
32-
*///:~
33+
*/

annotations/PasswordUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//: annotations/PasswordUtils.java
1+
// annotations/PasswordUtils.java
22
// ©2015 MindView LLC: see Copyright.txt
33
import java.util.*;
44

@@ -18,4 +18,4 @@ public boolean checkForNewPassword(
1818
List<String> prevPasswords, String password) {
1919
return !prevPasswords.contains(password);
2020
}
21-
} ///:~
21+
}

0 commit comments

Comments
 (0)