Skip to content
Open
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
31 changes: 31 additions & 0 deletions check/api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.daanse</groupId>
<artifactId>org.eclipse.daanse.check</artifactId>
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.check.api</artifactId>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>compile</scope>
<version>${assertj.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.daanse</groupId>
<artifactId>org.eclipse.daanse.olap.api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.daanse</groupId>
<artifactId>org.eclipse.daanse.check.assertj</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
22 changes: 22 additions & 0 deletions check/api/src/main/java/org/eclipse/daanse/check/api/Check.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api;

import org.assertj.core.api.Condition;

public interface Check<T>{

Condition<T> condition();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.eclipse.daanse.check.api;

import java.util.List;

public interface Selector<T> {

List<Check<T>> checkList();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.cube;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;

public interface CaptionCheck extends Check<Cube> {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.cube;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.check.api.Selector;
import org.eclipse.daanse.olap.api.element.Cube;

public interface CubeSelector extends Selector<Check<Cube>>{

String name(); //it's enough to take cube from context

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.cube;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;

public interface DescriptionCheck extends Check<Cube> {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.cube;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;

public interface DimensionCheck extends Check<Cube> {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.cube;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;

public interface DimensionCountCheck extends Check<Cube> {

int count();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.cube;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;

public interface NameCheck extends Check<Cube>{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena - initial
*/

@org.osgi.annotation.bundle.Export
@org.osgi.annotation.versioning.Version("0.0.1")
package org.eclipse.daanse.check.api.cube;
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.dimension;

import java.awt.Dimension;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;

public interface CaptionCheck extends Check<Dimension> {

void captionCheck(Dimension cube);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.dimension;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Cube;
import org.eclipse.daanse.olap.api.element.Dimension;

public interface DescriptionCheck extends Check<Dimension> {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.dimension;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.check.api.Selector;
import org.eclipse.daanse.olap.api.element.Dimension;

public interface DimensionSelector extends Selector<Check<Dimension>>{
//it's enough to take cube from context
String cubeName();
String name();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena, Stefan Bischof - initial
*
*/
package org.eclipse.daanse.check.api.dimension;

import org.eclipse.daanse.check.api.Check;
import org.eclipse.daanse.olap.api.element.Dimension;

public interface NameCheck extends Check<Dimension>{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 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:
* SmartCity Jena - initial
*/

@org.osgi.annotation.bundle.Export
@org.osgi.annotation.versioning.Version("0.0.1")
package org.eclipse.daanse.check.api;
31 changes: 31 additions & 0 deletions check/assertj/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.daanse</groupId>
<artifactId>org.eclipse.daanse.check</artifactId>
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.check.assertj</artifactId>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>compile</scope>
<version>${assertj.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.daanse</groupId>
<artifactId>org.eclipse.daanse.olap.api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.daanse</groupId>
<artifactId>org.eclipse.daanse.check.predicate</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
Loading