JUnit
-
Core Java

JUnit: Testing Exceptions with Java 8 and AssertJ 3.0.0
AssertJ 3.0.0 release for Java 8 makes testing exceptions much easier than before. In one of my previous blog post…
Read More » -
Enterprise Java

Automated testing of REST-services
Despite Iâm a Java and Scala developer I still passioned a lot in testing of software. If to be more…
Read More » -
Core Java

Nifty JUnit : Using Rule on Method and Class level
As shown in a the post Nifty JUnit : Working with temporary files, it is possible to use @Rule in…
Read More » -
Javaæ ļåŋ

åå æĩčŊJunitå ĨéĻ(PDFäļč――)
įžč æïžåĻJava Code GeeksïžæäŧŽå·ēįŧæäūäšåΧéJUnitįæįĻïžäūåĶJUnitå ĨéĻįĪšäūïžä―ŋįĻJUnitįæčĻåæģĻéäūåïžJUnitįæģĻéįĪšäūįãįķčïžæäŧŽåūåæķéææįJUnitįđæ§åĻäļäļŠčŊĶįŧįæåäŧĨæđäūŋčŊŧč ãæäŧŽåļæä― åæŽĒåŪïž įŪå― 1.åå æĩčŊįäŧįŧ 1.1. äŧäđæŊåå æĩčŊïž 1.2. æĩčŊčĶį 1.3. åĻJavaäļįåå æĩčŊ 2. JUnitįäŧįŧ 2.1. ä―ŋįĻEclipse JUnitįįŪåįĪšäū 2.2. JUnitįæģĻé 2.3. JUnitæčĻ…
Read More » -
Core Java

Using junit for something else
junit != unit test Junit is the Java unit testing framework. We use it for unit testing usually, but many…
Read More » -
Core Java

Testing System.in and System.out with system-rules
Writing unit tests is an integral part of software development. One problem you have to solve when your class under…
Read More » -
Core Java

Separating Integration Tests from Unit Tests Using Maven Failsafe & JUnit @Category
Why Unit Tests Should Run Separately From Integration Tests TDD at the Unit Testing level is fairly straight-forward, since classes in unit…
Read More » -
Core Java

Given When Then in Java
tl;dr you can use labels to clarify a given-when-then style of testing. What is given-when-then? given-when-then is a commonly used…
Read More » -
Core Java

Testing with files and directories in JUnit with @Rule
Testing with Files and directories in JUnit is easy thanks to TemporaryFolder @Rule. In JUnit rules (@Rule) can be used…
Read More »


