}
{
Options expectedOptions = new Options();
Set<Option> expectedOptionSet = new HashSet<Option>();
expectedOptionSet.add(new OptionImpl(
new QualifiedName("org.apache.torque.generator.optionWithNamespace"),
"optionWithNamespaceValue"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("org.apache.optionWithNamespace"),
"org.apache.optionWithNamespaceValue"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("optionWithoutNamespace", ""),
"optionWithoutNamespaceValue"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("optionPrecedenceLastFile"),
"value from xml"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("jdbcUrl"),
"jdbc.url.option.value"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("jdbcDriver"),
"jdbc.driver.option.value"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("parentOptionWithoutNamespace", ""),
"parentOptionWithoutNamespaceParentValue"));
expectedOptionSet.add(new OptionImpl(
new QualifiedName("org.apache.torque.generator.parentOptionWithNamespace"),
"parentOptionWithNamespaceParentValue"));
expectedOptions.addGlobalOptions(expectedOptionSet);
assertOptionsEquals(
expectedOptions,