blob: 5cc6839f00e2327886a3be224dda2b1604fcbe19 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012, 2020 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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);
}
}