|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2008 the original author or authors. |
|
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -30,6 +30,8 @@ import static org.junit.Assert.assertNotNull;
@@ -30,6 +30,8 @@ import static org.junit.Assert.assertNotNull;
|
|
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Unit tests for {@link TransformerUtils}. |
|
|
|
|
* |
|
|
|
|
* @author Rick Evans |
|
|
|
|
* @author Arjen Poutsma |
|
|
|
|
*/ |
|
|
|
@ -42,7 +44,7 @@ public class TransformerUtilsTests {
@@ -42,7 +44,7 @@ public class TransformerUtilsTests {
|
|
|
|
|
String indent = transformer.getOutputProperty(OutputKeys.INDENT); |
|
|
|
|
assertNotNull(indent); |
|
|
|
|
assertEquals("yes", indent); |
|
|
|
|
String indentAmount = transformer.getOutputProperty("{https://xml.apache.org/xslt}indent-amount"); |
|
|
|
|
String indentAmount = transformer.getOutputProperty("{http://xml.apache.org/xalan}indent-amount"); |
|
|
|
|
assertNotNull(indentAmount); |
|
|
|
|
assertEquals(String.valueOf(TransformerUtils.DEFAULT_INDENT_AMOUNT), indentAmount); |
|
|
|
|
} |
|
|
|
@ -55,7 +57,7 @@ public class TransformerUtilsTests {
@@ -55,7 +57,7 @@ public class TransformerUtilsTests {
|
|
|
|
|
String indent = transformer.getOutputProperty(OutputKeys.INDENT); |
|
|
|
|
assertNotNull(indent); |
|
|
|
|
assertEquals("yes", indent); |
|
|
|
|
String indentAmount = transformer.getOutputProperty("{https://xml.apache.org/xslt}indent-amount"); |
|
|
|
|
String indentAmount = transformer.getOutputProperty("{http://xml.apache.org/xalan}indent-amount"); |
|
|
|
|
assertNotNull(indentAmount); |
|
|
|
|
assertEquals(indentAmountProperty, indentAmount); |
|
|
|
|
} |
|
|
|
|