Skip to content

Commit 55de56e

Browse files
committed
After rewriting Type Information Chapter, added missing @OverRide
1 parent dfdbcf6 commit 55de56e

File tree

1,034 files changed

+102355
-2768
lines changed

Some content is hidden

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

1,034 files changed

+102355
-2768
lines changed

CI.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

Copyright.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright.txt
2-
This computer source code is Copyright �2020 MindView LLC.
2+
This computer source code is Copyright �2021 MindView LLC.
33
All Rights Reserved.
44

55
Permission to use, copy, modify, and distribute this

annotations/AUComposition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AUComposition.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Creating non-embedded tests
@@ -23,8 +23,8 @@ boolean tMethodTwo() {
2323
}
2424
/* Output:
2525
annotations.AUComposition
26+
. tMethodOne
2627
. tMethodTwo This is methodTwo
2728
28-
. tMethodOne
2929
OK (2 tests)
3030
*/

annotations/AUExternalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AUExternalTest.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Creating non-embedded tests

annotations/AtUnitExample1.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AtUnitExample1.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// {java onjava.atunit.AtUnit
@@ -34,15 +34,15 @@ boolean anotherDisappointment() {
3434
}
3535
/* Output:
3636
annotations.AtUnitExample1
37-
. m3
37+
. anotherDisappointment (failed)
3838
. methodOneTest
39+
. failureTest (failed)
3940
. m2 This is methodTwo
4041
41-
. failureTest (failed)
42-
. anotherDisappointment (failed)
42+
. m3
4343
(5 tests)
4444
4545
>>> 2 FAILURES <<<
46-
annotations.AtUnitExample1: failureTest
4746
annotations.AtUnitExample1: anotherDisappointment
47+
annotations.AtUnitExample1: failureTest
4848
*/

annotations/AtUnitExample2.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AtUnitExample2.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Assertions and exceptions can be used in @Tests
@@ -40,18 +40,18 @@ boolean assertAndReturn() {
4040
}
4141
/* Output:
4242
annotations.AtUnitExample2
43+
. assertFailureExample java.lang.AssertionError: What
44+
a surprise!
45+
(failed)
46+
. assertExample
4347
. exceptionExample java.io.FileNotFoundException:
4448
nofile.txt (The system cannot find the file specified)
4549
(failed)
46-
. assertExample
4750
. assertAndReturn This is methodTwo
4851
49-
. assertFailureExample java.lang.AssertionError: What
50-
a surprise!
51-
(failed)
5252
(4 tests)
5353
5454
>>> 2 FAILURES <<<
55-
annotations.AtUnitExample2: exceptionExample
5655
annotations.AtUnitExample2: assertFailureExample
56+
annotations.AtUnitExample2: exceptionExample
5757
*/

annotations/AtUnitExample3.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AtUnitExample3.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// {java onjava.atunit.AtUnit
@@ -35,8 +35,8 @@ boolean methodOneTest() {
3535
/* Output:
3636
annotations.AtUnitExample3
3737
. initialization
38+
. methodOneTest
3839
. m2 This is methodTwo
3940
40-
. methodOneTest
4141
OK (3 tests)
4242
*/

annotations/AtUnitExample4.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AtUnitExample4.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// {java onjava.atunit.AtUnit

annotations/AtUnitExample5.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/AtUnitExample5.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// {java onjava.atunit.AtUnit
@@ -14,8 +14,7 @@ public class AtUnitExample5 {
1414
public AtUnitExample5(String text) {
1515
this.text = text;
1616
}
17-
@Override
18-
public String toString() { return text; }
17+
@Override public String toString() { return text; }
1918
@TestProperty
2019
static PrintWriter output;
2120
@TestProperty

annotations/DemoProcessFiles.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// annotations/DemoProcessFiles.java
2-
// (c)2020 MindView LLC: see Copyright.txt
2+
// (c)2021 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
import onjava.ProcessFiles;

0 commit comments

Comments
 (0)