// Copyright 2014, Kevin Ko <kevin@faveset.com>

package com.faveset.khttp;

import java.nio.ByteBuffer;
import java.nio.charset.Charset;

import static org.junit.Assert.assertTrue;

class Helper {
    public static final Charset US_ASCII_CHARSET = Charset.forName("US-ASCII");

    public static void compare(ByteBuffer buf, String v) {
        String dataStr = new String(buf.array(), buf.position(), buf.remaining(), US_ASCII_CHARSET);
        assertTrue(dataStr.equals(v));
    }

    public static ByteBuffer makeByteBuffer(String s) {
        return ByteBuffer.wrap(s.getBytes(US_ASCII_CHARSET));
    }
}

@@ -169,20 +169,22 @@
 t.assert
-True
+Equals
 ;%0A%0Aclass
@@ -452,30 +452,25 @@
 sert
-True(dataStr.equals(v)
+Equals(v, dataStr
 );%0A 

Use assertEquals.