assertEquals( l.version, "1.2" );
}
public void testNothingFetchedWhenVersionCheckingDisabled() {
p.set( Constants.VERSION_CHECK_DISABLED, p.YES );
MyHttpURLConnection cnn = new MyHttpURLConnection( "1.2" );
VersionChecker v = new VersionChecker( p );
VersionCheckerTestListener l = new VersionCheckerTestListener();
v.addLatestVersionListener( l );
v.fetchLatestVersionFrom( cnn );
assertEquals( l.version, "" );