Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* This software is subject to the terms of the Eclipse Public License v1.0
* Agreement, available at the following URL:
* http://www.eclipse.org/legal/epl-v10.html.
* You must accept the terms of that agreement to use this software.
*
* Copyright (C) 1998-2005 Julian Hyde
* Copyright (C) 2005-2017 Hitachi Vantara and others
* All Rights Reserved.
*
* ---- All changes after Fork in 2023 ------------------------
*
* Project: Eclipse daanse
*
* Copyright (c) 2024 Contributors to the Eclipse Foundation.
*
* 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 after Fork in 2023:
* SmartCity Jena - initial
* Stefan Bischof (bipolis.org) - initial
*/


package org.eclipse.daanse.olap.query.component;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

/**
* Test for <code>Cell Property<code>.
*
* @author Shishir
* @since 08 May, 2007
*/
class CellPropertyTest{
private CellPropertyImpl cellProperty;

@BeforeEach
protected void setUp() throws Exception {

cellProperty = new CellPropertyImpl(IdImpl.toList("Format_String"));
}

@Test
void testIsNameEquals() {
assertTrue(cellProperty.isNameEquals("Format_String"));
}

@Test
void testIsNameEqualsDoesCaseInsensitiveMatch() {
assertTrue(cellProperty.isNameEquals("format_string"));
}

@Test
void testIsNameEqualsParameterShouldNotBeQuoted() {
assertFalse(cellProperty.isNameEquals("[Format_String]"));
}

}
Loading
Loading