package i5.las2peer.services.ocd.cooperation.data.table;

import static org.junit.Assert.*;

import org.junit.Test;

import i5.las2peer.services.ocd.cooperation.data.table.Formatter;

public class FormatterTest {

	@Test
	public void decimalsTest() {
		
		String insert;
		String result;
		Formatter formatter = new Formatter();
		
		insert="0.242352356";
		result=formatter.decimals(insert, 4);
		try {
			assertEquals("0,2424", result);
		}
		catch (Exception e) {
			assertEquals("0.2424", result);
		}
		
	}
	
	
}

@@ -395,24 +395,27 @@
 ;%0A%09%09
-try %7B%0A%09%09%09assertE
+assertTrue(result.e
 qual
@@ -428,86 +428,38 @@
 424%22
-,
+) %7C%7C
  result
-);%0A%09%09%7D%0A%09%09catch (Exception e) %7B%0A%09%09%09assertEquals(%220.2424%22, result);%0A%09%09%7D%0A
+.equals(%220.2424%22));
 %09%09%0A%09

Fix FormatterTest