We all write unit tests but the challenge we face at times is that the unit under test might be dependent on other components. And configuring other components for unit testing is definitely an overkill. Instead we can make use of Mocks in place of the other components and continue with the unit testing.
Inner classes might at first seem like a whole new language to the uninitiated but they are a nice feature in Java that allow you to logically group related classes and control the visibility of one class from outside of the other.
Java is a minimalist language with deliberately less features than other languages, never the less it has edge cases which strange effects, and even some common cases with surprising effects to trip up the unwary. If you are used to reading another language you can easily read Java the wrong way leaving to confusion...
Jersey is the excellent Java JAX-RS specification reference implementation from Oracle. Last year, when we were starting to build RESTful backend web services for a high-volume website, we chose to use the JAX-RS API as our REST framework and Spring framework for dependency injection. Jersey was our JAX-RS implementation of choice...
This new free online course will be available on March 31st. Java experts Stephen Chin, Jim Weaver, Simon Ritter, Angela Caicedo, and Tom McGinn will lead you through lectures and basic exercises. Order your equipment and register today for the class! http://bit.ly/1kYTmGp
Ready to dive into the Internet of Things? Take the new, free, online course "Develop Java Embedded Applications Using a Raspberry Pi." The Oracle Learning Library has created this course which provides code, examples, and experts to teach you and answer your questions. Java experts Stephen Chin, Jim Weaver, Simon Ritter, Angela Caicedo, and Tom McGinn will lead you through basic exercises...
We have just released the 2nd part of the Java EE 8 Community Survey, see https://www.surveymonkey.com/s/JavaEE8-Part2
Please help us to spread the word!
A while ago a small group (lead by Markus Eisele) of us started a project called Java Countdown (http://www.jcountdown.com/). The site is meant to track visitor versions of "Java in the browser" so we can track its timely demise (and/or make sure folks have the latest version if they absolutely must use it).
JavaOne 2013 sessions about the Internet of Things (IoT) are available for free at oracle.com/JavaOne. Some of the IoT topics are:
- Beyond Beauty: JavaFX, Parallax, Touch, Raspberry Pi, Gyroscopes, and Much More
- Is It a Car? Is It a Computer? No, It’s a Raspberry Pi JavaFX Informatics System
- Let’s Get Physical: I/O Programming with Java on the Raspberry Pi with Pi4J