// Path: app/src/main/java/com/hexforhn/hex/adapter/helper/TextHelper.java
// public class TextHelper {
// 
//     public static CharSequence removeTrailingNewlinesFromText(CharSequence text) {
//         if (text == null || text.length() < 1) {
//             return "";
//         }
// 
//         if (text.charAt(text.length() - 1) == "\n".charAt(0)) {
//             return removeTrailingNewlinesFromText(text.subSequence(0, text.length() - 1));
//         }
// 
//         return text;
//     }
// }


import com.hexforhn.hex.adapter.helper.TextHelper;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
package com.hexfornh.hex.adapter.helper;




public class TextHelperTest {

    @Test
    public void removesTrailingNewlinesFromText() throws Exception {
// Path: app/src/main/java/com/hexforhn/hex/adapter/helper/TextHelper.java
// public class TextHelper {
// 
//     public static CharSequence removeTrailingNewlinesFromText(CharSequence text) {
//         if (text == null || text.length() < 1) {
//             return "";
//         }
// 
//         if (text.charAt(text.length() - 1) == "\n".charAt(0)) {
//             return removeTrailingNewlinesFromText(text.subSequence(0, text.length() - 1));
//         }
// 
//         return text;
//     }
// }


// Path: app/src/test/java/com/hexfornh/hex/adapter/helper/TextHelperTest.java
import com.hexforhn.hex.adapter.helper.TextHelper;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;

package com.hexfornh.hex.adapter.helper;




public class TextHelperTest {

    @Test
    public void removesTrailingNewlinesFromText() throws Exception {
        assertEquals("", TextHelper.removeTrailingNewlinesFromText(null));