JAL-1690 'scale protein as cDNA' options in Preferences, FontChooser
[jalview.git] / test / jalview / viewmodel / styles / TestviewStyle.java
1 package jalview.viewmodel.styles;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5
6 public class TestviewStyle
7 {
8
9   @Test
10   public void testSetterGetter()
11   {
12     ViewStyle orig = new ViewStyle();
13     orig.setCharHeight(23);
14     orig.setWrappedWidth(253);
15     orig.setWrapAlignment(true);
16     orig.setScaleProteinAsCdna(true);
17
18     ViewStyle copy = new ViewStyle(orig);
19     orig.setWrapAlignment(false);
20     Assert.assertEquals(copy.getCharHeight(), orig.getCharHeight());
21     Assert.assertEquals(copy.getWrappedWidth(), orig.getWrappedWidth());
22     Assert.assertEquals(copy.getWrapAlignment(), !orig.getWrapAlignment());
23     Assert.assertEquals(copy.isScaleProteinAsCdna(),
24             orig.isScaleProteinAsCdna());
25   }
26
27 }