Use append/prepend instead of addSuffix/addPrefix
[svjatoslav_commons.git] / src / test / java / eu / svjatoslav / commons / string / String2Test.java
index b79966c..be1837f 100755 (executable)
@@ -1,12 +1,7 @@
 /*
- * Svjatoslav Commons - shared library of common functionality.
- * Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
+ * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
-
 package eu.svjatoslav.commons.string;
 
 import org.junit.Test;
@@ -51,7 +46,7 @@ public class String2Test {
     @Test
     public void testSuffixAndPrefix() {
         final String2 s = new String2("experiment");
-        s.addPrefix("The ").addSuffix(" !");
+        s.prepend("The ").append(" !");
 
         assertEquals("The experiment !", s.toString());
     }