About   Forum   Wiki   Home  

       
    Managed Chaos      
   
Naresh Jain’s Weblog on Object thinking, Patterns, Open Source, Agile and Adventure Sports

 
`
 
Tags
Recent Comments
Quick Search
Recent Entries
Categories
Archives
November 2006
M T W T F S S
« Sep   Dec »
 12345
6789101112
13141516171819
20212223242526
27282930  
Add to Technorati Favorites

Syndicate This Blog
Entries (RSS)
Comments (RSS)

Archive for November, 2006

Date aware FitLibrary Fixtures

Thursday, November 23rd, 2006

Having problems parsing Dates in your fit/fitnesse tests?

Here is a simple way to fix date parsing problem using FitLibrary.

Fit Page

|set date format as|MM/dd/yyyy|

|date|
|11/23/2006|

|set date format as|dd-MMM-yyyy|

|date|
|23-Nov-2006|

Fixture Class

public void setDateFormatAs(String format) {
ValueAdapter.registerParseDelegate(java.sql.Date.class, new SimpleDateFormat(format));
ValueAdapter.registerParseDelegate(java.util.Date.class, new SimpleDateFormat(format));
}

How this works?
The ValueAdapter class holds a static HashMap called PARSE_DELEGATES which contains all the ParseDelegators. The ParseDelegator‘s job is to implement a parse method which take a String and returns the Object of your Data Type. You can register the Data Type and its respective ParseDelegator using the registerParseDelegate() method.

In this case, my ParseDelegator is SimpleDateFormat which has the following method

public Date parse(String source) throws ParseException{
ParsePosition pos = new ParsePosition(0);
Date result = parse(source, pos);
if (pos.index == 0)
throw new ParseException(”Unparseable date: ” + source ,
pos.errorIndex);
return result;
}

All that matters is the following method signature:
public Date parse(String source){

You can use the same mechanism to parse any object of choice.

Simple Design and Testing Conference - The show must go on!

Sunday, November 12th, 2006

I‘m proud to announce that the first Simple Design and Testing Conference was successful completed on 29th Oct 2006.

The Conference was attended by 68 passionate participants. The conference attracted some big names like Ron Jeffries, Brian Marick, Chet Hendrickson, J. B. Rainsberger and many more. You can find the list of conference participants here.

The conference comprised of all open space discussions. Following is the list of topics that were discussed:

  • How automated should tests be?
  • Biggest problem (and possible solution) after an agile project over 1.5 year
  • Testing ROI
  • Just In Time (JIT) Design
  • Inversion of control
  • Team learning, documentation, training
  • Agile game development
  • Can SOA be simple?
  • Teaching OOD entirely through TDD
  • Do you believe the green bar/cell?
  • Systemic tests have no value
  • GUI Testing
  • Top objections to testable design
  • Code Simplification
  • There is no spoon
  • People & Relationships over Process & Tools
  • Data-driven unit testing
  • Practices for testing existing application in “older“ language and existing design
  • Teaching agile using games
  • Programmer test tools
  • Evil IF
  • why do my mocks feel clunky?
  • Other Paradigms?
  • Open source impacts on Agile
  • BDD: Just “TDD done correctly?”
  • Philosophical Design Principles
  • Programmer Tests
  • Improving estimates through acceptance tests
  • Using Dynamic to Test/Drive Static

Summary of these discussions can be found on the conference wiki.

Big thanks to the sponsors who helped me turn this conference into a reality.
Special thanks to David Bogus, Bob Payne, Manu Tandon, Chad Wathington, Jason Nocks, Joel Adams, Ramon Davila, Prof. Richard Epstein, Cheryl A Faust, Michael Heydt, Vikrant, Tom Costello and many more for doing all the hard work and helping me with ideas.
I would also like to thank Brian Marick, Rachel Davies and Agile Alliance in general for supporting this conference.
Of course the conference would have not been possible with out the support of Agile Philly User Group, West Chester University and Thought Works.
Last but not the least, BIG THANKS to Continuous Integration and Testing Conference for giving the idea and inspiration to organize a similar conference.

More details: Conference Website and Conference Wiki

I‘m happy to help people organize SDT conference in a different city/country. Please drop me a note at nashjain@gmail.com for more details.

John Spens on Distributed Agile

Sunday, November 12th, 2006

As a part of the Agile Philly User Group, I‘m organizing an user group meeting, where John Spens will present a case study describing the creation of a distributed Agile development team for a client in the health care industry. The case study will be presented in the traditional retrospective format (What went well, What didn‘t, What would we change) and will focus on the following topics:

  • Facilitating the transfer of knowledge and project ownership to a remote team
  • Aligning non-development groups (Product development, Operations, QA) to work with a remote team using Agile techniques
  • Servicing multiple customers remotely: balancing functional, architectural and operational concerns

The meeting is open to all. If you want to attend, please RSVP via email to Naresh Jain ASAP. Please include your name, role and organization.

  • Venue: Ternary Software, 180 Sheree Blvd, Suite 3800, Exton, PA, 19341
  • Date: Dec 5th 2006
  • Time: 6:30 PM onwards

More details: http://wiki.agilephilly.com/index.php?title=Distributed_Agile

    Licensed under
Creative Commons License
Design by vikivix