From 3ce90eabda07319f199233a09a4ed3689c3b3ac5 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Sun, 20 Sep 2015 19:11:01 +0300 Subject: Use correct state class for split panels (#18942) Change-Id: I91980343c0e8f3f35abb26411f57d2303b286cce --- .../com/vaadin/ui/HorizontalSplitPanelTest.java | 30 ++++++++++++++++++++++ .../src/com/vaadin/ui/VerticalSplitPanelTest.java | 30 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 server/tests/src/com/vaadin/ui/HorizontalSplitPanelTest.java create mode 100644 server/tests/src/com/vaadin/ui/VerticalSplitPanelTest.java (limited to 'server/tests') diff --git a/server/tests/src/com/vaadin/ui/HorizontalSplitPanelTest.java b/server/tests/src/com/vaadin/ui/HorizontalSplitPanelTest.java new file mode 100644 index 0000000000..9797e48924 --- /dev/null +++ b/server/tests/src/com/vaadin/ui/HorizontalSplitPanelTest.java @@ -0,0 +1,30 @@ +/* + * Copyright 2000-2014 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.ui; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.shared.ui.splitpanel.HorizontalSplitPanelState; + +public class HorizontalSplitPanelTest { + + @Test + public void primaryStyleName() { + Assert.assertEquals(new HorizontalSplitPanelState().primaryStyleName, + new HorizontalSplitPanel().getPrimaryStyleName()); + } +} diff --git a/server/tests/src/com/vaadin/ui/VerticalSplitPanelTest.java b/server/tests/src/com/vaadin/ui/VerticalSplitPanelTest.java new file mode 100644 index 0000000000..c48caf8144 --- /dev/null +++ b/server/tests/src/com/vaadin/ui/VerticalSplitPanelTest.java @@ -0,0 +1,30 @@ +/* + * Copyright 2000-2014 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.ui; + +import org.junit.Assert; +import org.junit.Test; + +import com.vaadin.shared.ui.splitpanel.VerticalSplitPanelState; + +public class VerticalSplitPanelTest { + + @Test + public void primaryStyleName() { + Assert.assertEquals(new VerticalSplitPanelState().primaryStyleName, + new VerticalSplitPanel().getPrimaryStyleName()); + } +} -- cgit v1.2.3