DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

The Latest Testing, Tools, and Frameworks Topics

article thumbnail
What Tools Do You Need for Continuous Delivery?
A 101 crash course on some of the basic categories of tools for DevOps and Continuous Delivery practices.
May 24, 2016
by Badri Srinivasan
· 47,146 Views · 13 Likes
article thumbnail
3 Ways How Specification By Example and Gherkin Improve Collaboration
An excerpt from an upcoming book on how to use Gherkin for specifications and collaboration.
May 23, 2016
by Kamil Nicieja
· 29,988 Views · 5 Likes
article thumbnail
Tic-Tac-Toe in Angular 2 and Typescript
If a tic-tac-toe game is worth writing, it's worth writing about, complete with activity diagram and test scaffolding.
May 20, 2016
by Jeremy Likness
· 15,573 Views · 8 Likes
article thumbnail
What’s the Right Ratio Between QA Testers and Developers?
Can testing have a happy balance, or is it just a Kobayashi Maru? Following the rule of thumb may not always be the best solution.
May 13, 2016
by Howard Deiner
· 13,343 Views · 3 Likes
article thumbnail
What Does DevOps 2.0 Look Like?
Decoupling feature rollout from code deployment and the rise of user-centered deployments
May 11, 2016
by Justin Baker
· 20,202 Views · 13 Likes
article thumbnail
Automate CodeCommit and CodePipeline in AWS CloudFormation
A thorough look at the integration of CodeCommit and CodePipeline, and how to reach Continuous Delivery
May 9, 2016
by Paul Duvall
· 9,200 Views · 3 Likes
article thumbnail
5 Major Criteria for Selecting a Testing Tool
Testing tools need to be a part of the entire application lifecycle, be flexible in how they're used, and help companies take the next step towards DevOps.
May 5, 2016
by Amit Dasgupta, PMP, CSM
· 9,424 Views · 4 Likes
article thumbnail
How to Run User Tests Successfully: The ‘Why’ Question
Everything you wanted to know about user testing, but were too afraid to ask!
May 5, 2016
by Stefan Wolpers DZone Core CORE
· 5,488 Views · 5 Likes
article thumbnail
Preparing for a TDD Interview
Programming interviews can be daunting at the best of time, and throwing TDD and pairing into the mix is enough to make anyone nervous. Interview expert Sam Atkinson runs through how to prepare for the big day.
May 3, 2016
by Sam Atkinson
· 32,621 Views · 13 Likes
article thumbnail
Spring Annotation Processing: How It Works
If you see an annotation, there must be some code somewhere to process it.
May 2, 2016
by Alan Hohn
· 64,426 Views · 13 Likes
article thumbnail
How to Interpret and Report Your Performance Test Results (so People Actually Read Them)
Take a look at some of the common mistakes made when measuring and reporting performance, and how can you generate useful reports for your own projects.
April 30, 2016
by Tammy Everts
· 11,116 Views · 3 Likes
article thumbnail
Sharing Test Classes Between Multiple Modules in a Multi-module Maven Project
Using Maven to effectively test software when test classes are not already packaged by Maven.
April 28, 2016
by Dave Turner
· 56,569 Views · 6 Likes
article thumbnail
Testing Java EE (or Why Integration Tests Are Overrated)
Testing that goes beyond just unit testing and integration testing. Why we should be doing full system testing.
April 27, 2016
by Sebastian Daschner
· 26,262 Views · 7 Likes
article thumbnail
Mocking Method with Wildcard Generic Return Type
[Ivan Zerin provides a primer on mocking methods that contain generic return types.] There are several cases where construction when().thenReturn is not suitable during Unit tests. One of then generic return type. I have faced such issue, let's take a look. There is a method in interface declaration: public interface FooInterface { public Iterable getList(); ... } Implementation looks like this: public class Foo implements FooInterface { public List getList() { ... } ... } At first mocking of such method should not be something unusual: public class UnitTest { @Mock private FooInterface mockFoo; @Test public void someUnitTest() { ... List testList = generateTestList(); when(mockFoo.getList()) .thenReturn(testList); } } But this code won't compile with error: Cannot resolve method 'thenReturn(List). Seems to be some mistake, cause returned type are correct from the interface point of view. This error happening cause compiler can not gurantee that returned type of method getList() will be List. Actually return type of method getList() in this case is Iterable and this means "Return some Iterable object with any objects that extends SomeClass". Let's rename this type as 'X'. So when(mockFoo.getList()) will create object OngoingStubbing> and it has method thenReturn(Iterable). Compiler can not tell what type X before runtime and cannot perform safe cast from List to Iterable (we perfrom actuall call of method thenReturn(List)). Sounds a little tricky but let's assume that SomeClass is standard Java class Number. Then classes Integer and Double are both fulfill the criteria of List. Let's say that as return type of mock we will use List, in this case, compiler should be ready that actual work with code during runtime will be performed with List too, but it is clearly that cast from Double to Integer will be incorrect (try to cast double value 12.6 to int). You could argue that in the case of mockito compiler won't need to bother about the casting of returned type because call of original method would not produce anything, but it is known by mockito. From compiler point of view, it is only Java code, that should be checked for safety and correctness before compiling. Ok, so how we should deal with such cases in mockito? Use doReturn() method: doReturn(testList).when(mockFoo).getList(); Such expression is not type safe, so it were designed for exceprional cases, so use it only when you cannot use standart when().thenReturn(), which is the type-safe, elegant and more readable syntax.
April 27, 2016
by Ivan Zerin
· 44,668 Views · 4 Likes
article thumbnail
Logback Configuration: Using Groovy
Logback is one of the most popular logging frameworks for Java, but did you know you could configure it using Groovy? This guide walks you through the whole process.
April 27, 2016
by John Thompson
· 26,562 Views · 7 Likes
article thumbnail
How to Verify Equality Without Equals Method
When testing it is often quite complicated to compare object with complex fields. By using the Unitils library in Java, this all becomes quite simple and elegant.
April 27, 2016
by Lubos Krnac
· 16,713 Views · 5 Likes
article thumbnail
How to Authenticate on Android Using Social Logins
In this article we will go through four popular social login providers and learn how to implement them on Android. Read on!
April 21, 2016
by Sebastián Peyrott
· 21,886 Views · 5 Likes
article thumbnail
JavaScript MVVM — You’re (Probably) Doing it Wrong
If you are using one of the many frameworks that say they are using JavaScript MVVM, you might not be using it the way it should be used. In this article, Dave Bush defines MVVM, analyzes its advantages, and provides some MVVM best practices to follow.
April 21, 2016
by Dave Bush
· 23,114 Views · 10 Likes
article thumbnail
Building Blocks for Highly Available Systems on AWS
An upcoming article from DZone's Guide to Building and Deploying Applications on the Cloud, coming out next week!
April 21, 2016
by Andreas Wittig
· 8,525 Views · 5 Likes
article thumbnail
Logback Configuration: Using XML
Logback is a logging library from the creator of JUnit. In this series continuation, Spring guru John Thompson shows how to configure it using XML.
April 20, 2016
by John Thompson
· 92,482 Views · 16 Likes
  • Previous
  • ...
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×