You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tap4j provides objects to create TestSets, TestResults, BailOuts and, using a TapProducer, dump it into a java.io.File or String. It also provides TapConsumer's to load TapStreams from Strings or java.io.File's. YAMLish is interpreted and made available as diagnostics of each TestResult object of a TestSet.
387
387
388
-
-[tap4j](http://www.tap4j.org)
389
-
-[Example of a TapConsumer in Java with tap4j + YAMLish](http://tap4j.org/tap4j/tapconsumer.html)
390
-
-[Example of a TapProducer in Java with tap4j + YAMLish](http://tap4j.org/tap4j/tapproducer.html)
388
+
-[tap4j](https://tupilabs.com/tap4j/tap4j/)
389
+
-[Example of a TapConsumer in Java with tap4j + YAMLish](https://tupilabs.com/tap4j/tap4j/tapconsumer.html)
390
+
-[Example of a TapProducer in Java with tap4j + YAMLish](https://tupilabs.com/tap4j/tap4j/tapproducer.html)
Copy file name to clipboardExpand all lines: testing-with-tap/java.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ title: Testing with Java
9
9
10
10
### Installation
11
11
12
-
In order to install tap4j you have to download a jar from [http://tupilabs.github.io/tap4j](http://tupilabs.github.io/tap4j) or if you are a Maven user you can add a dependency in your pom.xml, as shown below.
12
+
In order to install tap4j you have to download a jar from [https://tupilabs.com/tap4j/tap4j](https://tupilabs.com/tap4j/tap4j) or if you are a Maven user you can add a dependency in your pom.xml, as shown below.
13
13
14
14
```xml
15
15
<dependency>
@@ -19,11 +19,11 @@ In order to install tap4j you have to download a jar from [http://tupilabs.githu
19
19
</dependency>
20
20
```
21
21
22
-
Differently than in others implementations, tap4j uses an Object Oriented approach. Instead of calling methods like ok(), not_ok(), is() and isnt(), you construct objects such as a TAP Producer to dump TAP and a TAP Consumer to load TAP. A [TestSet](http://tupilabs.github.io/tap4j/tap4j/apidocs/org/tap4j/model/TestSet.html) object is used to encapsulate all the TAP Elements.
22
+
Differently than in others implementations, tap4j uses an Object Oriented approach. Instead of calling methods like ok(), not_ok(), is() and isnt(), you construct objects such as a TAP Producer to dump TAP and a TAP Consumer to load TAP. A [TestSet](https://tupilabs.com/tap4j/tap4j/apidocs/org/tap4j/model/TestSet.html) object is used to encapsulate all the TAP Elements.
23
23
24
24
## Generating TAP using a TAP Producer
25
25
26
-
The TAP Producers in tap4j are created using a [TapProducerFactory](http://tupilabs.github.io/tap4j/tap4j/apidocs/org/tap4j/producer/TapProducerFactory.html). After a TAP Producer is created we can call the dump method passing a [TestSet](http://tupilabs.github.io/tap4j/tap4j/apidocs/org/tap4j/model/TestSet.html) to have the result TAP.
26
+
The TAP Producers in tap4j are created using a [TapProducerFactory](https://tupilabs.com/tap4j/tap4j/apidocs/org/tap4j/producer/TapProducerFactory.html). After a TAP Producer is created we can call the dump method passing a [TestSet](https://tupilabs.com/tap4j/tap4j/apidocs/org/tap4j/model/TestSet.html) to have the result TAP.
If you understood about how tap4j works, reading a TAP Stream will be quite easy for you. You just have to create a TAP Consumer using guess what? Yeah, a [TapConsumerFactory](http://tupilabs.github.io/tap4j/tap4j/apidocs/org/tap4j/consumer/TapConsumerFactory.html). The method of the TAP Consumer to load TAP is load(). This method will return a [TestSet](http://tupilabs.github.io/tap4j/tap4j/apidocs/org/tap4j/model/TestSet.html). Let's read the output from the previous section.
59
+
If you understood about how tap4j works, reading a TAP Stream will be quite easy for you. You just have to create a TAP Consumer using guess what? Yeah, a [TapConsumerFactory](https://tupilabs.com/tap4j/tap4j/apidocs/org/tap4j/consumer/TapConsumerFactory.html). The method of the TAP Consumer to load TAP is load(). This method will return a [TestSet](https://tupilabs.com/tap4j/tap4j/apidocs/org/tap4j/model/TestSet.html). Let's read the output from the previous section.
0 commit comments