Leverage RouterFunctions.Builder in RouterFunctionDsl

Closes gh-22423
This commit is contained in:
Sebastien Deleuze
2019-02-17 17:18:40 +01:00
parent 175c27657e
commit 1d866053ed
2 changed files with 28 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -120,7 +120,7 @@ class RouterFunctionDslTests {
.verifyComplete()
}
@Test
@Test(expected = IllegalStateException::class)
fun emptyRouter() {
router { }
}