Thursday, February 24, 2005

Spirit for WordSets initial offering

Here is the changelog for my new project, I will describe in more detail later on:

** 2/3/2005:
- First Connection to labs.google.com
- Raw Connection only
Here is an example test case:

RawHttpConnect conn = new RawHttpConnectImpl();
conn.setVerbose(true);

Map d = new HashMap();
d.put("q1", "dog");
d.put("q2", "cat");

conn.setMapData(d);
conn.setRequestPage("labs");

String url = "labs.google.com";
conn.setConnectionData(url, 80, url,"" + 80,url);
conn.connect();

uploaded to http://www.retroevolution.com/SpiritWordSets.zip

** 2/3/2005:
- Added custom logging
- Added unit testing

Example way to add test case

private Logger l;
public static Test suite() {
return new TestSuite(LoggerTest.class);
} /// end of the method //
protected void setUp() {
l = LogFactory.getLogger();

} /// end of the method //

public void testNull() {
l.info("Logger Test");
l.info("Logger Test", new Exception("Test Exception - Dont Panic!"));
} /// end of the test //

...
...
TestSuite suite= new TestSuite("All JUnit Tests");
suite.addTest(LoggerTest.suite());
return suite;

** 2/1/2005:
- Working on web crawler
- SpiritWordSets Initial offering

0 Comments:

Post a Comment

<< Home