Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2009-08-21 05:37:39 +0000
committerbvosburgh2009-08-21 05:37:39 +0000
commit667b355cc374bfd39ccf2c2df8299cf3d9269374 (patch)
tree1833363eb5f4698b14e1c57b1e030adee41d0066 /jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests
parent928dd42df949bf089f02025ab691e5717713ff07 (diff)
downloadwebtools.dali-667b355cc374bfd39ccf2c2df8299cf3d9269374.tar.gz
webtools.dali-667b355cc374bfd39ccf2c2df8299cf3d9269374.tar.xz
webtools.dali-667b355cc374bfd39ccf2c2df8299cf3d9269374.zip
[283897] Static Metamodel generation
Diffstat (limited to 'jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests')
-rw-r--r--jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/IndentingPrintWriterTests.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/IndentingPrintWriterTests.java b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/IndentingPrintWriterTests.java
index b971895bc1..f91064f4a6 100644
--- a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/IndentingPrintWriterTests.java
+++ b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/IndentingPrintWriterTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2008 Oracle. All rights reserved.
+ * Copyright (c) 2005, 2009 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -13,6 +13,7 @@ import java.io.StringWriter;
import junit.framework.TestCase;
import org.eclipse.jpt.utility.internal.IndentingPrintWriter;
+@SuppressWarnings("nls")
public class IndentingPrintWriterTests extends TestCase {
StringWriter sw1;
StringWriter sw2;
@@ -41,31 +42,31 @@ public class IndentingPrintWriterTests extends TestCase {
}
public void testIndent() {
- assertEquals("wrong indent level", 0, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 0, this.ipw1.getIndentLevel());
this.ipw1.indent();
- assertEquals("wrong indent level", 1, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 1, this.ipw1.getIndentLevel());
}
public void testUndent() {
- assertEquals("wrong indent level", 0, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 0, this.ipw1.getIndentLevel());
this.ipw1.indent();
- assertEquals("wrong indent level", 1, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 1, this.ipw1.getIndentLevel());
this.ipw1.undent();
- assertEquals("wrong indent level", 0, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 0, this.ipw1.getIndentLevel());
}
public void testIncrementIndentLevel() {
- assertEquals("wrong indent level", 0, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 0, this.ipw1.getIndentLevel());
this.ipw1.incrementIndentLevel();
- assertEquals("wrong indent level", 1, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 1, this.ipw1.getIndentLevel());
}
public void testDecrementIndentLevel() {
- assertEquals("wrong indent level", 0, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 0, this.ipw1.getIndentLevel());
this.ipw1.incrementIndentLevel();
- assertEquals("wrong indent level", 1, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 1, this.ipw1.getIndentLevel());
this.ipw1.decrementIndentLevel();
- assertEquals("wrong indent level", 0, this.ipw1.indentLevel());
+ assertEquals("wrong indent level", 0, this.ipw1.getIndentLevel());
}
public void testPrintTab() {

Back to the top