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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Import-Package: com.google.common.util.concurrent,
org.eclipse.set.core.services.cache,
org.eclipse.set.core.services.enumtranslation,
org.eclipse.set.core.services.geometry,
org.eclipse.set.core.services.graph,
org.eclipse.set.model.tablemodel,
org.eclipse.set.model.temporaryintegration,
org.eclipse.set.ppmodel.extensions.container,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.service.event.EventAdmin;
import org.osgi.test.common.annotation.InjectService;
import org.osgi.test.junit5.service.ServiceExtension;
Expand All @@ -52,9 +55,9 @@
@TestInstance(Lifecycle.PER_CLASS)
@ExtendWith(ServiceExtension.class)
class Pt1TableTransformationTest extends Pt1TableTest {

private static List<String> Ssks_Pagebreak_Column_Index = List.of("49",
"76");

private static String XSL_DIR = "res/xsl";

private static boolean compareXSLDoc(final Document actual,
Expand Down Expand Up @@ -85,6 +88,9 @@ protected static Stream<Arguments> getReferenceFiles() {
Arguments.of(SINGLE_STATE_PLAN, "zustandpphn"));
}

@InjectService
BundleContext context;

@InjectService
EventAdmin eventAdmin;

Expand All @@ -98,6 +104,17 @@ protected static Stream<Arguments> getReferenceFiles() {
void testPDFExportStyle() throws Exception {
givenPlanProFile(PPHN_1_10_0_3_20220517_PLANPRO);
setupTransformationService(eventAdmin);
for (final Bundle b : context.getBundles()) {
System.out.println(b.getSymbolicName() + " -> " + b.getState());
}
final ServiceReference<?>[] refs = context.getServiceReferences((String) null,
null);
System.out.println("Registered services: " + refs.length);
System.out
.println("pdfExportStylteTest: Injected TransformationService");
transformationServices.stream()
.map(service -> service.getTableNameInfo().getShortName())
.forEach(System.out::println);
for (final PlanPro2TableTransformationService service : transformationServices) {
final TransformTable transformTable = new TransformTable(
ExportType.INVENTORY_RECORDS,
Expand Down Expand Up @@ -131,6 +148,10 @@ void testTransformator(final String file) throws Exception {
setupTransformationService(eventAdmin);
System.setProperty(ToolboxProperties.DEVELOPMENT_MODE,
Boolean.FALSE.toString());
System.out.println("transformatorTest: Injected TransformationService");
transformationServices.stream()
.map(service -> service.getTableNameInfo().getShortName())
.forEach(System.out::println);
for (final PlanPro2TableTransformationService transformationService : transformationServices) {
for (final MultiContainer_AttributeGroup container : getLSTContainer()) {
// Test transformation table
Expand Down
Loading