| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0d20d3e commit edd9988
257 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,15 +1,15 @@ | |||
| 1 | - // annotations/AtUnitComposition.java | ||
| 1 | + // annotations/AUComposition.java | ||
| 2 | 2 | // (c)2017 MindView LLC: see Copyright.txt | |
| 3 | 3 | // We make no guarantees that this code is fit for any purpose. | |
| 4 | 4 | // Visit http://OnJava8.com for more book information. | |
| 5 | 5 | // Creating non-embedded tests | |
| 6 | 6 | // {java onjava.atunit.AtUnit | |
| 7 | - // build/classes/main/annotations/AtUnitComposition.class} | ||
| 7 | + // build/classes/main/annotations/AUComposition.class} | ||
| 8 | 8 | package annotations; | |
| 9 | 9 | import onjava.atunit.*; | |
| 10 | 10 | import onjava.*; | |
| 11 | 11 | ||
| 12 | - public class AtUnitComposition { | ||
| 12 | + public class AUComposition { | ||
| 13 | 13 | AtUnitExample1 testObject = new AtUnitExample1(); | |
| 14 | 14 | @Test | |
| 15 | 15 | boolean tMethodOne() { | |
@@ -22,7 +22,7 @@ boolean tMethodTwo() { | |||
| 22 | 22 | } | |
| 23 | 23 | } | |
| 24 | 24 | /* Output: | |
| 25 | - annotations.AtUnitComposition | ||
| 25 | + annotations.AUComposition | ||
| 26 | 26 | . tMethodTwo This is methodTwo | |
| 27 | 27 | ||
| 28 | 28 | . tMethodOne | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,16 @@ | |||
| 1 | - // annotations/AtUnitExternalTest.java | ||
| 1 | + // annotations/AUExternalTest.java | ||
| 2 | 2 | // (c)2017 MindView LLC: see Copyright.txt | |
| 3 | 3 | // We make no guarantees that this code is fit for any purpose. | |
| 4 | 4 | // Visit http://OnJava8.com for more book information. | |
| 5 | 5 | // Creating non-embedded tests | |
| 6 | 6 | // {java onjava.atunit.AtUnit | |
| 7 | - // build/classes/main/annotations/AtUnitExternalTest.class} | ||
| 7 | + // build/classes/main/annotations/AUExternalTest.class} | ||
| 8 | 8 | package annotations; | |
| 9 | 9 | import onjava.atunit.*; | |
| 10 | 10 | import onjava.*; | |
| 11 | 11 | ||
| 12 | 12 | public class | |
| 13 | - AtUnitExternalTest extends AtUnitExample1 { | ||
| 13 | + AUExternalTest extends AtUnitExample1 { | ||
| 14 | 14 | @Test | |
| 15 | 15 | boolean tMethodOne() { | |
| 16 | 16 | return methodOne().equals("This is methodOne"); | |
@@ -21,7 +21,7 @@ boolean tMethodTwo() { | |||
| 21 | 21 | } | |
| 22 | 22 | } | |
| 23 | 23 | /* Output: | |
| 24 | - annotations.AtUnitExternalTest | ||
| 24 | + annotations.AUExternalTest | ||
| 25 | 25 | . tMethodOne | |
| 26 | 26 | . tMethodTwo This is methodTwo | |
| 27 | 27 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,11 +34,11 @@ boolean anotherDisappointment() { | |||
| 34 | 34 | } | |
| 35 | 35 | /* Output: | |
| 36 | 36 | annotations.AtUnitExample1 | |
| 37 | + . m3 | ||
| 38 | + . methodOneTest | ||
| 37 | 39 | . m2 This is methodTwo | |
| 38 | 40 | ||
| 39 | - . m3 | ||
| 40 | 41 | . failureTest (failed) | |
| 41 | - . methodOneTest | ||
| 42 | 42 | . anotherDisappointment (failed) | |
| 43 | 43 | (5 tests) | |
| 44 | 44 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,14 +40,14 @@ boolean assertAndReturn() { | |||
| 40 | 40 | } | |
| 41 | 41 | /* Output: | |
| 42 | 42 | annotations.AtUnitExample2 | |
| 43 | - . assertExample | ||
| 44 | 43 | . exceptionExample java.io.FileNotFoundException: | |
| 45 | 44 | nofile.txt (The system cannot find the file specified) | |
| 46 | 45 | (failed) | |
| 46 | + . assertExample | ||
| 47 | 47 | . assertAndReturn This is methodTwo | |
| 48 | 48 | ||
| 49 | - . assertFailureExample java.lang.AssertionError: What a | ||
| 50 | - surprise! | ||
| 49 | + . assertFailureExample java.lang.AssertionError: What | ||
| 50 | + a surprise! | ||
| 51 | 51 | (failed) | |
| 52 | 52 | (4 tests) | |
| 53 | 53 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,9 +34,9 @@ boolean methodOneTest() { | |||
| 34 | 34 | } | |
| 35 | 35 | /* Output: | |
| 36 | 36 | annotations.AtUnitExample3 | |
| 37 | - . methodOneTest | ||
| 38 | 37 | . initialization | |
| 39 | 38 | . m2 This is methodTwo | |
| 40 | 39 | ||
| 40 | + . methodOneTest | ||
| 41 | 41 | OK (3 tests) | |
| 42 | 42 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | // Visit http://OnJava8.com for more book information. | |
| 5 | 5 | // {java onjava.atunit.AtUnit | |
| 6 | 6 | // build/classes/main/annotations/AtUnitExample4.class} | |
| 7 | + // {VisuallyInspectOutput} | ||
| 7 | 8 | package annotations; | |
| 8 | 9 | import java.util.*; | |
| 9 | 10 | import onjava.atunit.*; | |
@@ -67,15 +68,16 @@ boolean scramble2() { | |||
| 67 | 68 | annotations.AtUnitExample4 | |
| 68 | 69 | . words 'All' | |
| 69 | 70 | (failed) | |
| 70 | - . scramble2 'brontosauruses' | ||
| 71 | - tsaeborornussu | ||
| 72 | - | ||
| 73 | - . scramble1 'are' | ||
| 74 | - rae | ||
| 71 | + . scramble1 'brontosauruses' | ||
| 72 | + ntsaueorosurbs | ||
| 73 | + (failed) | ||
| 74 | + . scramble2 'are' | ||
| 75 | + are | ||
| 75 | 76 | (failed) | |
| 76 | 77 | (3 tests) | |
| 77 | 78 | ||
| 78 | - >>> 2 FAILURES <<< | ||
| 79 | + >>> 3 FAILURES <<< | ||
| 79 | 80 | annotations.AtUnitExample4: words | |
| 80 | 81 | annotations.AtUnitExample4: scramble1 | |
| 82 | + annotations.AtUnitExample4: scramble2 | ||
| 81 | 83 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,11 +53,11 @@ boolean test3() { | |||
| 53 | 53 | } | |
| 54 | 54 | /* Output: | |
| 55 | 55 | annotations.AtUnitExample5 | |
| 56 | + . test1 | ||
| 57 | + Running cleanup | ||
| 56 | 58 | . test3 | |
| 57 | 59 | Running cleanup | |
| 58 | 60 | . test2 | |
| 59 | - Running cleanup | ||
| 60 | - . test1 | ||
| 61 | 61 | Running cleanup | |
| 62 | 62 | OK (3 tests) | |
| 63 | 63 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ void tRemove() { | |||
| 30 | 30 | /* Output: | |
| 31 | 31 | annotations.HashSetTest | |
| 32 | 32 | . initialization | |
| 33 | - . tContains | ||
| 34 | 33 | . tRemove | |
| 34 | + . tContains | ||
| 35 | 35 | OK (3 tests) | |
| 36 | 36 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,16 @@ | |||
| 1 | - // annotations/StackLStringTest.java | ||
| 1 | + // annotations/StackLStringTst.java | ||
| 2 | 2 | // (c)2017 MindView LLC: see Copyright.txt | |
| 3 | 3 | // We make no guarantees that this code is fit for any purpose. | |
| 4 | 4 | // Visit http://OnJava8.com for more book information. | |
| 5 | 5 | // Applying @Unit to generics | |
| 6 | 6 | // {java onjava.atunit.AtUnit | |
| 7 | - // build/classes/main/annotations/StackLStringTest.class} | ||
| 7 | + // build/classes/main/annotations/StackLStringTst.class} | ||
| 8 | 8 | package annotations; | |
| 9 | 9 | import onjava.atunit.*; | |
| 10 | 10 | import onjava.*; | |
| 11 | 11 | ||
| 12 | 12 | public class | |
| 13 | - StackLStringTest extends StackL<String> { | ||
| 13 | + StackLStringTst extends StackL<String> { | ||
| 14 | 14 | @Test | |
| 15 | 15 | void tPush() { | |
| 16 | 16 | push("one"); | |
@@ -34,9 +34,9 @@ void tTop() { | |||
| 34 | 34 | } | |
| 35 | 35 | } | |
| 36 | 36 | /* Output: | |
| 37 | - annotations.StackLStringTest | ||
| 38 | - . tPop | ||
| 37 | + annotations.StackLStringTst | ||
| 39 | 38 | . tTop | |
| 40 | 39 | . tPush | |
| 40 | + . tPop | ||
| 41 | 41 | OK (3 tests) | |
| 42 | 42 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,10 +27,10 @@ public static void main(String[] args) { | |||
| 27 | 27 | } | |
| 28 | 28 | } | |
| 29 | 29 | /* Output: | |
| 30 | - Found Use Case 47 | ||
| 31 | - Passwords must contain at least one numeric | ||
| 32 | 30 | Found Use Case 48 | |
| 33 | 31 | no description | |
| 32 | + Found Use Case 47 | ||
| 33 | + Passwords must contain at least one numeric | ||
| 34 | 34 | Found Use Case 49 | |
| 35 | 35 | New passwords can't equal previously used ones | |
| 36 | 36 | Missing use case 50 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments