expectations

What employers expect from new developers?

In somewhat a response to Perks, what do employers/managers expect from new developers? ...

What documenting expectations can developers reasonably fulfill?

I work at a growing company where developers were doing customer support. Now, that our customer base is growing and we're trying to get the documentation the support staff needs in order answer the questions for the developers. So, In a normal day, how much documentation can be expected of developers. What kind of documentation? A...

SimpleTest Mock objects: clearing expectations

The short question: Is there a way to reset a Mock object in SimpleTest, removing all expectations? The longer explanation: I have a class that I'm testing using SimpleTest and am having some problem with the Mock objects it is using. The class is a Logger, and inside the logger are a number of Writer objects (FileWriter, EmailWriter,...

Jmockit expectations error

I have unit test case where I am using JMockit with expectations. Now when I run the test case alone, the test case passes. But when I run all test cases collectively, I get the: expected exactly 1 time, already invoked... error. I feel that some configuration or states set in jmock by previous test cases has not cleared. Has anyone...

Nmock2 and Event Expectations

Im in the process of writing a test for a small application that follows the MVP pattern. Technically, I know I should have written the test before the code, but I needed to knock up a demo app quick smart and so im now going back to the test before moving on to the real development. In short I am attempting to test the presenter, howe...

should_receive in RSpec

As far as I know, should_receive is applied only to mock objects. What I want is to check, if a certain Class (not object) received a certain message, like: User.should_receive(:all).once How do I do that? UPD. Commonly, writing test for models and controllers we can write User.should_receive(:smth).once. But in my case I'm testing a...

RSpec: Expectation on model's not working while testing controller

I'm trying to write a functional test. My test looks as following: describe PostsController do it "should create a Post" do Post.should_receive(:new).once post :create, { :post => { :caption => "ThePost", :category => "MyCategory" } } end end My PostsController (a part of it actually) looks as following: PostController < ...

What should a Java/SOA developer be able to do?

Hello community. I got assigned the task to list the activities a Java Developer should be able to perform and create an estimate about the time it would take. I've came up with the following: Create JDBC CRUD backend ( S=1d, M=5d, H=10d ) Create JSP/Servlet frontend for a CRUD app ( S=1d, M=10d, H=20d ) Create Swing desktop fron...