package jalview.viewmodel.styles; import org.junit.Assert; import org.junit.Test; public class TestviewStyle { @Test public void testSetterGetter() { ViewStyle orig = new ViewStyle(); orig.setCharHeight(23); orig.setWrappedWidth(253); orig.setWrapAlignment(true); orig.setScaleProteinAsCdna(true); ViewStyle copy = new ViewStyle(orig); orig.setWrapAlignment(false); Assert.assertEquals(copy.getCharHeight(), orig.getCharHeight()); Assert.assertEquals(copy.getWrappedWidth(), orig.getWrappedWidth()); Assert.assertEquals(copy.getWrapAlignment(), !orig.getWrapAlignment()); Assert.assertEquals(copy.isScaleProteinAsCdna(), orig.isScaleProteinAsCdna()); } }