test_class.declarator: BASE_TMS_URL = "http://www.geomajas.org/tms/some_layer"
test_class.modifier: private static final
test_class.original_string: private static final String BASE_TMS_URL = "http://www.geomajas.org/tms/some_layer";
test_class.type: String
test_class.var_name: BASE_TMS_URL
test_class.declarator: EXTENSION = "png"
test_class.modifier: private static final
test_class.original_string: private static final String EXTENSION = "png";
test_class.type: String
test_class.var_name: EXTENSION
test_class.declarator: EXPECTED = "http://www.geomajas.org/tms/some_layer/1/2/3.png"
test_class.modifier: private static final
test_class.original_string: private static final String EXPECTED = "http://www.geomajas.org/tms/some_layer/1/2/3.png";
test_class.type: String
test_class.var_name: EXPECTED
test_class.file: plugin/layer-tms/tms/src/test/java/org/geomajas/layer/tms/tile/SimpleTmsUrlBuilderTest.java
test_class.identifier: SimpleTmsUrlBuilderTest
test_case.body: @Test
  	public void testBuildUrlCornerCases() {
  		try {
  			new SimpleTmsUrlBuilder(null);
  			Assert.fail();
  		} catch (IllegalStateException e) {
  			// As expected...
  		}
  		try {
  			TileUrlBuilder builder = new SimpleTmsUrlBuilder("." + EXTENSION);
  			builder.buildUrl(null, "");
  			Assert.fail();
  		} catch (NullPointerException e) {
  			// As expected...
  		}
  		try {
  			TileUrlBuilder builder = new SimpleTmsUrlBuilder("." + EXTENSION);
  			builder.buildUrl(new TileCode(), null);
  			Assert.fail();
  		} catch (NullPointerException e) {
  			// As expected...
  		}
  	}
test_case.class_method_signature: SimpleTmsUrlBuilderTest.testBuildUrlCornerCases()
test_case.full_signature: @Test public void testBuildUrlCornerCases()
test_case.identifier: testBuildUrlCornerCases
test_case.invocations: fail buildUrl fail buildUrl fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuildUrlCornerCases()
focal_class.declarator: extension
focal_class.modifier: private final
focal_class.original_string: private final String extension;
focal_class.type: String
focal_class.var_name: extension
focal_class.file: plugin/layer-tms/tms/src/main/java/org/geomajas/layer/tms/tile/SimpleTmsUrlBuilder.java
focal_class.identifier: SimpleTmsUrlBuilder
focal_class.interfaces: implements TileUrlBuilder
focal_class.class_method_signature: SimpleTmsUrlBuilder.SimpleTmsUrlBuilder(String extension)
focal_class.full_signature: public  SimpleTmsUrlBuilder(String extension)
focal_class.identifier: SimpleTmsUrlBuilder
focal_class.modifiers: public
focal_class.parameters: (String extension)
focal_class.signature:  SimpleTmsUrlBuilder(String extension)
focal_class.class_method_signature: SimpleTmsUrlBuilder.buildUrl(TileCode tileCode, String baseTmsUrl)
focal_class.full_signature: @Override public String buildUrl(TileCode tileCode, String baseTmsUrl)
focal_class.identifier: buildUrl
focal_class.modifiers: @Override public
focal_class.parameters: (TileCode tileCode, String baseTmsUrl)
focal_class.return: String
focal_class.signature: String buildUrl(TileCode tileCode, String baseTmsUrl)
focal_method.body: @Override
  	public String buildUrl(TileCode tileCode, String baseTmsUrl) {
  		StringBuilder builder = new StringBuilder(baseTmsUrl);
  		if (!baseTmsUrl.endsWith("/")) {
  			builder.append("/");
  		}
  		builder.append(tileCode.getTileLevel());
  		builder.append("/");
  		builder.append(tileCode.getX());
  		builder.append("/");
  		builder.append(tileCode.getY());
  		builder.append(extension);
  		return builder.toString();
  	}
focal_method.class_method_signature: SimpleTmsUrlBuilder.buildUrl(TileCode tileCode, String baseTmsUrl)
focal_method.full_signature: @Override public String buildUrl(TileCode tileCode, String baseTmsUrl)
focal_method.identifier: buildUrl
focal_method.invocations: endsWith append append getTileLevel append append getX append append getY append toString
focal_method.modifiers: @Override public
focal_method.parameters: (TileCode tileCode, String baseTmsUrl)
focal_method.return: String
focal_method.signature: String buildUrl(TileCode tileCode, String baseTmsUrl)