test_class.declarator: classUnderTest = null
test_class.original_string: OptionalSqlClause classUnderTest = null;
test_class.type: OptionalSqlClause
test_class.var_name: classUnderTest
test_class.file: sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/dialects/OptionalSqlClauseTest.java
test_class.identifier: OptionalSqlClauseTest
test_class.superclass: extends BaseSQuirreLJUnit4TestCase
test_case.body: @Test
  	public void testOptionalSqlClauseStringTemplateStringString()
  	{
  		String staticPart = "A test template ";
  		StringTemplate st = new StringTemplate(staticPart + "$subst$");
  		
  		String key = "subst";
  		String value = "works!";
  		
  		classUnderTest = new OptionalSqlClause(st, key, value);
  		
  		String result = classUnderTest.toString();
  		assertEquals(staticPart+value, result);
  	}
test_case.class_method_signature: OptionalSqlClauseTest.testOptionalSqlClauseStringTemplateStringString()
test_case.full_signature: @Test public void testOptionalSqlClauseStringTemplateStringString()
test_case.identifier: testOptionalSqlClauseStringTemplateStringString
test_case.invocations: toString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOptionalSqlClauseStringTemplateStringString()
focal_class.declarator: _staticPart = null
focal_class.modifier: private
focal_class.original_string: private String _staticPart = null;
focal_class.type: String
focal_class.var_name: _staticPart
focal_class.declarator: _variablePart = null
focal_class.modifier: private
focal_class.original_string: private String _variablePart = null;
focal_class.type: String
focal_class.var_name: _variablePart
focal_class.declarator: _st = null
focal_class.modifier: private
focal_class.original_string: private StringTemplate _st = null;
focal_class.type: StringTemplate
focal_class.var_name: _st
focal_class.declarator: _key = null
focal_class.modifier: private
focal_class.original_string: private String _key = null;
focal_class.type: String
focal_class.var_name: _key
focal_class.declarator: _value = null
focal_class.modifier: private
focal_class.original_string: private String _value = null;
focal_class.type: String
focal_class.var_name: _value
focal_class.file: sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/dialects/OptionalSqlClause.java
focal_class.identifier: OptionalSqlClause
focal_class.class_method_signature: OptionalSqlClause.OptionalSqlClause(String staticPart, String variablePart)
focal_class.full_signature: public  OptionalSqlClause(String staticPart, String variablePart)
focal_class.identifier: OptionalSqlClause
focal_class.modifiers: public
focal_class.parameters: (String staticPart, String variablePart)
focal_class.signature:  OptionalSqlClause(String staticPart, String variablePart)
focal_class.class_method_signature: OptionalSqlClause.OptionalSqlClause(StringTemplate st, String key, String value)
focal_class.full_signature: public  OptionalSqlClause(StringTemplate st, String key, String value)
focal_class.identifier: OptionalSqlClause
focal_class.modifiers: public
focal_class.parameters: (StringTemplate st, String key, String value)
focal_class.signature:  OptionalSqlClause(StringTemplate st, String key, String value)
focal_class.class_method_signature: OptionalSqlClause.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public String toString() {
  		String result = "";
  		if (_st != null) {
  			if (_value != null) {
  				_st.setAttribute(_key, _value);
  				result = _st.toString();
  			}
  		} else {
  			if (!StringUtils.isEmpty(_variablePart)) {
  				result = new StringBuilder(_staticPart).append(" ").append(_variablePart).toString();
  			}
  		}
  		return result;
  		
  	}
focal_method.class_method_signature: OptionalSqlClause.toString()
focal_method.full_signature: public String toString()
focal_method.identifier: toString
focal_method.invocations: setAttribute toString isEmpty toString append append
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()