I'm new to unit testing using nunit (and Java development in general). When creating unit tests for private methods on classes, it looks as though the test file must be ... |
I am using an external library in a java project but I am not sure how can I integration test it with my code.
For example: Let us say I am using ... |
what are the best books to learn about junit, jmock and testing generally? Currently I'm reading pragmatic unit testing in Java, I'm on chapter 6 its good but it gets complicated.. ... |
I am doing my first steps with TDD. The problem is (as probably with everyone starting with TDD), I never know very well what kind of unit tests to do when ... |
So I made the following test for a class Board that would to be born:
[TestMethod]
public void Set_The_Origin_As_Violet_And_The_Query_Confirms_It() {
Board board = new Board(10, 10);
Color ...
|
This question comes a bit as continuation of the following topic (you don't need to read it, though). It's just a game of Tetris I'm implementing with TDD.
So here is ... |
I have a bunch of tests that assume that my Tetris class is composed by a Board class. I now feel that instead of having a Board inside of that Tetris ... |
|
Let's say I'm starting to do a game with TDD. Is this a good first test?
[TestMethod]
public void Can_Start_And_End_Game()
{
Tetris tetris = new Tetris();
tetris.Start();
...
|
So I had a couple of methods in my main class that used a matrix to set pixels on or off. I got all my current tests running and so, and ... |
I currently have like 10 tests that test whenever my Tetris piece doesn't move left if there is a piece in the path, or a wall. Now, I will have to ... |
Is there any point in Unit-Testing a method that the only thing it does is delegate work on another object? Example:
class abc {
...
public ...
|
I have this first integration test for a tic tac toe game:
[TestClass]
public class FirstIntegrationTest
{
[TestMethod, TestCategory("Integration Tests")]
public void Standard_TicTacToe_Game_PlayerO_Wins()
{
...
|
IMO one of the main characteristics of a good TDD is: testing your class (or actually unit) in isolation.
When you do so, you are able to actually test single behavior in ... |
In one of our service classes I have a bunch of methods which just return the DAO result with no processing like
public void acceptRequest(User from, User to) {
...
|
I'm learning test-driven development, and I have noticed that it forces loosely coupled objects, which is basically a good thing. However, this also sometimes forces me to provide accessors for properties ... |
I have this class that I wanted to build using TDD, but I failed. It's a pretty basic class called SubMissions, and all it does is it fetches some data from ... |
Many times I am involved in the design/implementation of APIs I am facing this dilemma.
I am a very strong supporter of information hiding and try to use various techniques ... |
I am struggling to find good content of MVC and TDD. I just want to learn how to effectively write unit tests for the MVC design pattern. I would appreciate any ... |
I wanted to know how to test the Presenter using a mock view in java. I am doing Test Driven Design (TDD) and I do not understand how to test the ... |
I am about to write just another Java-Test which covers a new feature. To document the reason for this new tests I am thinking about commenting the test with an explanation ... |
So I have worked through the Money example in Kent Beck's book Test Driven Development by Example and have been able to get the code to work up until the last ... |