-
Notifications
You must be signed in to change notification settings - Fork 96
Hibernate Validator integration test #1919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
testOnContext.vertx() | ||
.executeBlocking( | ||
// schema generation is a blocking operation and so it causes an | ||
// exception when run on the Vert.x event loop. So call it using | ||
// Vertx.executeBlocking() | ||
promise -> startFactoryManager( promise, confSupplier ), | ||
event -> { | ||
if ( event.succeeded() ) { | ||
future.complete( null ); | ||
} | ||
else { | ||
future.completeExceptionally( event.cause() ); | ||
} | ||
} | ||
); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
Vertx.executeBlocking
return 0L; | ||
} | ||
else { | ||
return Long.parseLong( s.replaceAll( "-", "" ) ); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException Note
* @return a {@link Uni} with the expected exception thrown by the uni we were testing. | ||
*/ | ||
public static <U extends Throwable> Uni<U> assertThrown(Class<U> expectedException, Uni<?> uni) { | ||
return uni.onItemOrFailure().transform( (s, e) -> { |
Check notice
Code scanning / CodeQL
Useless parameter Note test
} | ||
|
||
public static void test(VertxTestContext context, CompletionStage<?> work) { | ||
work.whenComplete( (res, err) -> { |
Check notice
Code scanning / CodeQL
Useless parameter Note test
} | ||
|
||
public static void test(VertxTestContext context, Uni<?> uni) { | ||
uni.subscribe().with( res -> context.completeNow(), context::failNow ); |
Check notice
Code scanning / CodeQL
Useless parameter Note test
protected void addServices(StandardServiceRegistryBuilder builder) { | ||
} | ||
|
||
protected void configureServices(StandardServiceRegistry registry) { |
Check notice
Code scanning / CodeQL
Useless parameter Note test
return configuration.buildSessionFactory( registry ); | ||
} | ||
|
||
protected void addServices(StandardServiceRegistryBuilder builder) { |
Check notice
Code scanning / CodeQL
Useless parameter Note test
Fix #1907