Skip to content

Commit

Permalink
Update the api
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Nov 16, 2022
1 parent d78c71c commit fa0ada7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

import java.util.function.Supplier;

public interface ColumnFamilyManagerSupplier extends Supplier<ColumnManager> {
public interface ColumnManagerSupplier extends Supplier<ColumnManager> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class ColumnManagerTest {
@BeforeEach
public void setUp() {
Module module = ColumnManagerTest.class.getModule();
module.addUses(ColumnFamilyManagerSupplier.class);
module.addUses(ColumnManagerSupplier.class);
}
@ParameterizedTest
@ColumnSource("column.properties")
Expand Down Expand Up @@ -314,9 +314,9 @@ private ColumnManager getManager(ColumnArgument argument) {
}

private ColumnManager getManager() {
final ColumnFamilyManagerSupplier supplier = ServiceLoaderProvider
.get(ColumnFamilyManagerSupplier.class,
()-> ServiceLoader.load(ColumnFamilyManagerSupplier.class));
final ColumnManagerSupplier supplier = ServiceLoaderProvider
.get(ColumnManagerSupplier.class,
()-> ServiceLoader.load(ColumnManagerSupplier.class));
return supplier.get();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright (c) 2022 Contributors to the Eclipse Foundation
*
Expand All @@ -19,5 +20,5 @@
requires java.logging;
requires jakarta.nosql.communication.core;
exports jakarta.nosql.tck.communication.driver.column;
uses jakarta.nosql.tck.communication.driver.column.ColumnFamilyManagerSupplier;
uses jakarta.nosql.tck.communication.driver.column.ColumnManagerSupplier;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

import java.util.function.Supplier;

public interface DocumentCollectionManagerSupplier extends Supplier<DocumentManager> {
public interface DocumentManagerSupplier extends Supplier<DocumentManager> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class DocumentManagerTest {
@BeforeEach
public void setUp() {
Module module = DocumentManagerTest.class.getModule();
module.addUses(DocumentCollectionManagerSupplier.class);
module.addUses(DocumentManagerSupplier.class);
}
@ParameterizedTest
@DocumentSource("document.properties")
Expand Down Expand Up @@ -315,9 +315,9 @@ private DocumentManager getManager(DocumentArgument argument) {
}

private DocumentManager getManager() {
final DocumentCollectionManagerSupplier supplier = ServiceLoaderProvider
.get(DocumentCollectionManagerSupplier.class,
()-> ServiceLoader.load(DocumentCollectionManagerSupplier.class));
final DocumentManagerSupplier supplier = ServiceLoaderProvider
.get(DocumentManagerSupplier.class,
()-> ServiceLoader.load(DocumentManagerSupplier.class));
return supplier.get();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright (c) 2022 Contributors to the Eclipse Foundation
*
Expand All @@ -20,5 +21,5 @@
requires java.logging;
requires jakarta.nosql.communication.core;
exports jakarta.nosql.tck.communication.driver.document;
uses jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier;
uses jakarta.nosql.tck.communication.driver.document.DocumentManagerSupplier;
}

0 comments on commit fa0ada7

Please sign in to comment.