Skip to content

Commit 62c7771

Browse files
committed
migrate tests from legacy
Signed-off-by: dbulahov <bulahovdenis@gmail.com>
1 parent 562518c commit 62c7771

File tree

2 files changed

+876
-0
lines changed

2 files changed

+876
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* This software is subject to the terms of the Eclipse Public License v1.0
3+
* Agreement, available at the following URL:
4+
* http://www.eclipse.org/legal/epl-v10.html.
5+
* You must accept the terms of that agreement to use this software.
6+
*
7+
* Copyright (C) 1998-2005 Julian Hyde
8+
* Copyright (C) 2005-2017 Hitachi Vantara and others
9+
* All Rights Reserved.
10+
*
11+
* ---- All changes after Fork in 2023 ------------------------
12+
*
13+
* Project: Eclipse daanse
14+
*
15+
* Copyright (c) 2024 Contributors to the Eclipse Foundation.
16+
*
17+
* This program and the accompanying materials are made
18+
* available under the terms of the Eclipse Public License 2.0
19+
* which is available at https://www.eclipse.org/legal/epl-2.0/
20+
*
21+
* SPDX-License-Identifier: EPL-2.0
22+
*
23+
* Contributors after Fork in 2023:
24+
* SmartCity Jena - initial
25+
* Stefan Bischof (bipolis.org) - initial
26+
*/
27+
28+
29+
package org.eclipse.daanse.olap.query.component;
30+
31+
import static org.junit.jupiter.api.Assertions.assertFalse;
32+
import static org.junit.jupiter.api.Assertions.assertTrue;
33+
34+
import org.junit.jupiter.api.BeforeEach;
35+
import org.junit.jupiter.api.Test;
36+
37+
/**
38+
* Test for <code>Cell Property<code>.
39+
*
40+
* @author Shishir
41+
* @since 08 May, 2007
42+
*/
43+
class CellPropertyTest{
44+
private CellPropertyImpl cellProperty;
45+
46+
@BeforeEach
47+
protected void setUp() throws Exception {
48+
49+
cellProperty = new CellPropertyImpl(IdImpl.toList("Format_String"));
50+
}
51+
52+
@Test
53+
void testIsNameEquals() {
54+
assertTrue(cellProperty.isNameEquals("Format_String"));
55+
}
56+
57+
@Test
58+
void testIsNameEqualsDoesCaseInsensitiveMatch() {
59+
assertTrue(cellProperty.isNameEquals("format_string"));
60+
}
61+
62+
@Test
63+
void testIsNameEqualsParameterShouldNotBeQuoted() {
64+
assertFalse(cellProperty.isNameEquals("[Format_String]"));
65+
}
66+
67+
}

0 commit comments

Comments
 (0)