Search in sources :

Example 6 with FormattedObject

use of org.freeplane.features.format.FormattedObject in project freeplane by freeplane.

the class FormattedObjectTest method testStrangeInput.

@Test
public void testStrangeInput() {
    final FormattedDate date = new FormattedDate(new Date(), "yyyy-mm-dd");
    final FormattedObject formattedObject = new FormattedObject(date, "#.##");
    assertEquals("decimal format is not applicable to date", date.toString(), formattedObject.toString());
}
Also used : FormattedDate(org.freeplane.features.format.FormattedDate) FormattedObject(org.freeplane.features.format.FormattedObject) FormattedDate(org.freeplane.features.format.FormattedDate) Date(java.util.Date) Test(org.junit.Test)

Aggregations

FormattedObject (org.freeplane.features.format.FormattedObject)6 Test (org.junit.Test)5 Date (java.util.Date)1 Locale (java.util.Locale)1 FormattedDate (org.freeplane.features.format.FormattedDate)1 FormattedFormula (org.freeplane.features.format.FormattedFormula)1 FormattedNumber (org.freeplane.features.format.FormattedNumber)1 ExecuteScriptException (org.freeplane.plugin.script.ExecuteScriptException)1