Debian Codegraph @

sejda-conversion/src/test/java/org/sejda/conversion/VerticalAlignAdapterTest.java

raw
1 /*
2 * Created on 29/dic/2012
3 * Copyright 2011 by Andrea Vacondio ([email protected]).
4 *
5 * This file is part of the Sejda source code
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 package org.sejda.conversion;
21
22 import org.junit.Test;
23 import org.sejda.model.exception.SejdaRuntimeException;
24
25 /**
26 * @author Andrea Vacondio
27 *
28 */
29 public class VerticalAlignAdapterTest {
30 @Test
31 public void testAdapt() {
32 new VerticalAlignAdapter("top").getEnumValue();
33 new VerticalAlignAdapter("bottom").getEnumValue();
34 }
35
36 @Test(expected = SejdaRuntimeException.class)
37 public void testInvalid() {
38 new VerticalAlignAdapter("Chuck").getEnumValue();
39 }
40
41 }