package com.bugielmarek.timetable.tests.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class TestUtils {

	 
	 public static String createStringWithLength(int length){
		 	StringBuilder sb = new StringBuilder();
		 	for(int i=0; i<length; i++){
		 		sb.append("a");
		 	}
		 	return sb.toString();
	 }
	 
	/* public static byte[] convertObjectToJsonBytes(Object object) throws IOException {
	        ObjectMapper mapper = new ObjectMapper();
	        mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
	        return mapper.writeValueAsBytes(object);
	    }*/
	 
	 public static String asJsonString(Object object) throws JsonProcessingException{
		 ObjectMapper mapper = new ObjectMapper();
		 mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
		 return mapper.writeValueAsString(object);
	 }
}

@@ -232,19 +232,16 @@
 tils %7B%0A%0A
-%09 %0A
 %09 public
@@ -432,280 +432,8 @@
 %0A%09 %0A
-%09/* public static byte%5B%5D convertObjectToJsonBytes(Object object) throws IOException %7B%0A%09        ObjectMapper mapper = new ObjectMapper();%0A%09        mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);%0A%09        return mapper.writeValueAsBytes(object);%0A%09    %7D*/%0A%09 %0A
 %09 pu

Delete byte[] method, was superfluous