I would like to assign a text which is 10kbyte or 100Kbyte to a string .
In Java am not able to assign text with more than 16kb size .Any idea on how to assign long text to longEnglishText in the code snippet below, will be appreciated.
My Junit code is :
@Test
public void testLongEnglishTextSentimentWithXML() {
Form form = new Form();
form.param("text", longEnglishText);
form.param("outputMode", "xml");
Response resp =
target.path("serviceURL").request().post(Entity.form(form));
assertEquals(resp.getStatus(), 200);
Result result = resp.readEntity(Result.class);
assertEquals("ERROR", result.getStatus());
assertEquals("outofMemory-error",result.getStatusInfo());
}
Thanks, Divya