1.1 --- a/samples/aserverinfo/test/org/apidesign/aserverinfo/AServerInfoTest.java Sat Jun 14 09:58:08 2008 +0200
1.2 +++ b/samples/aserverinfo/test/org/apidesign/aserverinfo/AServerInfoTest.java Sat Jun 14 09:58:11 2008 +0200
1.3 @@ -23,17 +23,17 @@
1.4
1.5 @Test
1.6 public void showUseOfCumulativeFactory() throws Exception {
1.7 - Prov prov = new Prov();
1.8 - AServerInfo info;
1.9 + Prov p = new Prov();
1.10 + AServerInfo inf;
1.11
1.12 // BEGIN: aserverinfo.cumulative.creation
1.13 - info = AServerInfo.empty().nameProvider(prov).urlProvider(prov).reset(prov);
1.14 + inf = AServerInfo.empty().nameProvider(p).urlProvider(p).reset(p);
1.15 // END: aserverinfo.cumulative.creation
1.16
1.17 - assertEquals("API Design Server", info.getName());
1.18 - assertEquals("http://www.apidesign.org", info.getURL().toExternalForm());
1.19 - info.reset();
1.20 - assertEquals("Once reset", 1, prov.resets);
1.21 + assertEquals("API Design Server", inf.getName());
1.22 + assertEquals("http://www.apidesign.org", inf.getURL().toExternalForm());
1.23 + inf.reset();
1.24 + assertEquals("Once reset", 1, p.resets);
1.25
1.26 }
1.27