/*
* ====================================================================
* Copyright (c) 2005-2012 sventon project. All rights reserved.
*
* This software is licensed as described in the file LICENSE, which
* you should have received as part of this distribution. The terms
* are also available at http://www.sventon.org.
* If newer versions of this license are posted there, you may use a
* newer version instead, at your option.
* ====================================================================
*/
package org.sventon.model;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class DiffActionTest {
@Test
public void testDiffActionTestValueOfDeleted() throws Exception {
assertEquals(DiffAction.DELETED, DiffAction.parse("d"));
assertEquals("Deleted", DiffAction.parse("d").getDescription());
assertEquals("-", DiffAction.parse("d").getSymbol());
}
@Test
public void testDiffActionTestValueOfAdded() throws Exception {
assertEquals(DiffAction.ADDED, DiffAction.parse("a"));
assertEquals("Added", DiffAction.parse("a").getDescription());
assertEquals("+", DiffAction.parse("a").getSymbol());
}
@Test
public void testDiffActionTestValueOfChanged() throws Exception {
assertEquals(DiffAction.CHANGED, DiffAction.parse("c"));
assertEquals("Changed", DiffAction.parse("c").getDescription());
assertEquals("≠", DiffAction.parse("c").getSymbol());
}
}