/******************************************************************************* * Copyright (c) 2012 Original authors and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Original authors and others - initial API and implementation ******************************************************************************/ package org.eclipse.nebula.widgets.nattable.test; import org.eclipse.nebula.widgets.nattable.layer.ILayer; import org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer; import org.junit.Before; import org.junit.Test; public class TestLayerTest { private ILayer testLayer; @Before public void setup() { String columnInfo = "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100"; String rowInfo = "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40"; String cellInfo = "A0~NORMAL:stuff | < | C0 | D0 \n" + "^ | < | C1 | D1 \n" + "A2~SELECT | B2 | C2 | D2 \n" + "A3~:configLabel | B3 | C3 | D3 \n"; this.testLayer = new TestLayer(4, 4, columnInfo, rowInfo, cellInfo); } @Test public void testTestLayer() { LayerAssert.assertLayerEquals(this.testLayer, this.testLayer); } }