ODFTOOLKIT-362: Removed special replacement handling of cells when replacing with string values

git-svn-id: https://svn.apache.org/repos/asf/incubator/odf/trunk@1507202 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/simple/src/main/java/org/odftoolkit/simple/common/navigation/CellSelection.java b/simple/src/main/java/org/odftoolkit/simple/common/navigation/CellSelection.java
index c683c25..94edc8b 100644
--- a/simple/src/main/java/org/odftoolkit/simple/common/navigation/CellSelection.java
+++ b/simple/src/main/java/org/odftoolkit/simple/common/navigation/CellSelection.java
@@ -57,26 +57,6 @@
 		mCell = cell;
 	}
 
-	/**
-	 * Replace the text content of selection with a new string. The cell value
-	 * type will be updated as "string" after replacement.
-	 * 
-	 * @param newText
-	 *            the replace text String
-	 * @throws InvalidNavigationException
-	 *            if the selection is unavailable.
-	 * 
-	 * @see org.odftoolkit.simple.table.Cell#setValueType(String)
-	 * @see org.odftoolkit.simple.table.Cell#setStringValue(String)
-	 */
-	public void replaceWith(String newText) throws InvalidNavigationException {
-		super.replaceWith(newText);
-		if (mCell != null) {
-			// update mCell value and value type to string.
-			String text = mCell.getDisplayText();
-			mCell.setStringValue(text);
-		}
-	}
 
 	/**
 	 * Replace the text content of selection with a new string. The cell value
diff --git a/simple/src/test/java/org/odftoolkit/simple/common/navigation/TextNavigationTest.java b/simple/src/test/java/org/odftoolkit/simple/common/navigation/TextNavigationTest.java
index 8d266d6..dc2134e 100644
--- a/simple/src/test/java/org/odftoolkit/simple/common/navigation/TextNavigationTest.java
+++ b/simple/src/test/java/org/odftoolkit/simple/common/navigation/TextNavigationTest.java
@@ -195,8 +195,7 @@
 		
 	}
 	
-	@Ignore("This test currently fails because of a special handling of CellSelection which resets the display text."
-			+ "It is not clear why this special handling is necessary as display text and string value are consistent even if removed.")
+
 	@Test
 	public void testCellReplacementWithString() throws Exception {
 		replace(new ReplacementAction() {