1.1 --- a/samples/aserverinfo/test/org/apidesign/aserverinfo/test/BuilderFactoryTest.java Sat Nov 15 08:26:27 2008 +0100
1.2 +++ b/samples/aserverinfo/test/org/apidesign/aserverinfo/test/BuilderFactoryTest.java Tue Aug 25 11:32:10 2009 +0200
1.3 @@ -32,16 +32,16 @@
1.4 NameProvider np = p;
1.5 URLProvider up = p;
1.6 ResetHandler res = p;
1.7 - ServerConnector inf;
1.8 + ServerConnector connection;
1.9
1.10 // BEGIN: ServerConnector.builder.creation
1.11 - inf = ServerInfo.empty()
1.12 + connection = ServerInfo.empty()
1.13 .nameProvider(np).urlProvider(up).reset(res).connect();
1.14 // END: ServerConnector.builder.creation
1.15
1.16 - assertEquals("API Design Server", inf.getName());
1.17 - assertEquals("http://www.apidesign.org", inf.getURL().toExternalForm());
1.18 - inf.reset();
1.19 + assertEquals("API Design Server", connection.getName());
1.20 + assertEquals("http://www.apidesign.org", connection.getURL().toExternalForm());
1.21 + connection.reset();
1.22 assertEquals("Once reset", 1, p.resets);
1.23
1.24 }
1.25 @@ -49,19 +49,19 @@
1.26 @Test
1.27 public void showVerboseUseOfBuilder() throws Exception {
1.28 Prov prov = new Prov();
1.29 - ServerConnector info;
1.30 + ServerConnector connection;
1.31
1.32 // BEGIN: ServerConnector.builder.creation.verbose
1.33 ServerInfo empty = ServerInfo.empty();
1.34 ServerInfo name = empty.nameProvider(prov);
1.35 ServerInfo urlAndName = name.urlProvider(prov);
1.36 ServerInfo all = urlAndName.reset(prov);
1.37 - info = all.connect();
1.38 + connection = all.connect();
1.39 // END: ServerConnector.builder.creation.verbose
1.40
1.41 - assertEquals("API Design Server", info.getName());
1.42 - assertEquals("http://www.apidesign.org", info.getURL().toExternalForm());
1.43 - info.reset();
1.44 + assertEquals("API Design Server", connection.getName());
1.45 + assertEquals("http://www.apidesign.org", connection.getURL().toExternalForm());
1.46 + connection.reset();
1.47 assertEquals("Once reset", 1, prov.resets);
1.48
1.49 }