-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from cloudoptlab/3.x
3.0.2.0
- Loading branch information
Showing
39 changed files
with
343 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestAfterPrint2Annotation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.annotation.Before | ||
|
||
@Retention(AnnotationRetention.RUNTIME) | ||
@Target(AnnotationTarget.FUNCTION) | ||
@MustBeDocumented | ||
@Before(invokeBy = [TestAfterPrint2Handler::class]) | ||
annotation class TestAfterPrint2Annotation() |
13 changes: 13 additions & 0 deletions
13
...opt-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestAfterPrint2Handler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.Resource | ||
import net.cloudopt.next.web.RouteHandler | ||
|
||
class TestAfterPrint2Handler : RouteHandler { | ||
|
||
override suspend fun handle(annotation: Annotation, resource: Resource): Boolean { | ||
val afterAnnotation = annotation as TestAfterPrint2Annotation | ||
println("Pass the first TestAfterPrint2Handler") | ||
return true | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...t-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestAfterPrintAnnotation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.annotation.Before | ||
|
||
@Retention(AnnotationRetention.RUNTIME) | ||
@Target(AnnotationTarget.FUNCTION) | ||
@MustBeDocumented | ||
@Before(invokeBy = [TestAfterPrintHandler::class]) | ||
annotation class TestAfterPrintAnnotation() |
13 changes: 13 additions & 0 deletions
13
...dopt-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestAfterPrintHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.Resource | ||
import net.cloudopt.next.web.RouteHandler | ||
|
||
class TestAfterPrintHandler : RouteHandler { | ||
|
||
override suspend fun handle(annotation: Annotation, resource: Resource): Boolean { | ||
val afterAnnotation = annotation as TestAfterPrintAnnotation | ||
println("Pass the first TestAfterPrintHandler") | ||
return true | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestBeforePrint2Annotation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.annotation.Before | ||
|
||
@Retention(AnnotationRetention.RUNTIME) | ||
@Target(AnnotationTarget.FUNCTION) | ||
@MustBeDocumented | ||
@Before(invokeBy = [TestBeforePrint2Handler::class]) | ||
annotation class TestBeforePrint2Annotation() |
13 changes: 13 additions & 0 deletions
13
...pt-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestBeforePrint2Handler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.Resource | ||
import net.cloudopt.next.web.RouteHandler | ||
|
||
class TestBeforePrint2Handler : RouteHandler { | ||
|
||
override suspend fun handle(annotation: Annotation, resource: Resource): Boolean { | ||
val beforeAnnotation = annotation as TestBeforePrint2Annotation | ||
println("Pass the first TestBeforePrint2Handler") | ||
return true | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestBeforePrintAnnotation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.annotation.Before | ||
|
||
@Retention(AnnotationRetention.RUNTIME) | ||
@Target(AnnotationTarget.FUNCTION) | ||
@MustBeDocumented | ||
@Before(invokeBy = [TestBeforePrintHandler::class]) | ||
annotation class TestBeforePrintAnnotation() |
13 changes: 13 additions & 0 deletions
13
...opt-next-web/src/test/kotlin/net/cloudopt/next/web/test/handler/TestBeforePrintHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package net.cloudopt.next.web.test.handler | ||
|
||
import net.cloudopt.next.web.Resource | ||
import net.cloudopt.next.web.RouteHandler | ||
|
||
class TestBeforePrintHandler : RouteHandler { | ||
|
||
override suspend fun handle(annotation: Annotation, resource: Resource): Boolean { | ||
val beforeAnnotation = annotation as TestBeforePrintAnnotation | ||
println("Pass the first TestBeforePrintHandler") | ||
return true | ||
} | ||
} |
Oops, something went wrong.