package codes.thischwa.bacoma.rest.util;

import static org.junit.Assert.*;

import org.junit.Test;

import codes.thischwa.bacoma.model.util.ServletUtil;

public class TestServletUtil {

	@Test
	public void testGetMimeType() {
		assertEquals("image/png", ServletUtil.getMimeType("image.png"));
		assertEquals("image/jpeg", ServletUtil.getMimeType("image.jpg"));
		assertEquals("text/javascript", ServletUtil.getMimeType("file.js"));
		assertEquals("text/css", ServletUtil.getMimeType("format.css"));
		assertEquals("application/json", ServletUtil.getMimeType("file.json"));
	}

}
