Java Programming Tutorials

Java programming tutorials with many code examples!

Spock Framework share object reuse

Problem:

You’ve got some very costly object to instantiate or it just doesn’t change through all the tests and just want to reuse it (for example DateTime object). Spock Framework allows to do it in an easy and readable way. Learn here how!

Read More

Share with the World!

Bash Here Documents

Problem:

How to create Here/inline Documents in Bash?

Bash Here documents can be really helpful templating mechanism when used in Bash scripts. They can generate almost anything, even scripts to compile and run sample Java code!

Read More

Share with the World!