Use better MIME type detection
[jSite.git] / src / test / java / de / todesbaum / jsite / application / ProjectTest.java
1 package de.todesbaum.jsite.application;
2
3 import static org.hamcrest.MatcherAssert.assertThat;
4 import static org.hamcrest.Matchers.is;
5
6 import org.junit.Test;
7
8 /**
9  * Unit test for {@link ProjectTest}.
10  *
11  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
12  */
13 public class ProjectTest {
14
15         @Test
16         public void mimeTypeForTarBz2IsRecognizedCorrectly() {
17                 Project project = new Project();
18                 FileOption fileOption = project.getFileOption("foo.tar.bz2");
19                 assertThat(fileOption.getMimeType(), is("application/x-gtar"));
20         }
21
22 }