Skip to content
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

Added util methods to create class/object by name + retrieve type tag by type name #310

Merged
merged 3 commits into from
May 9, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
cleanup
  • Loading branch information
tovbinm committed May 9, 2019
commit 66c63bc9a506474a082aa9b6ac39041229c83e5b
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class ReflectionUtilsTest extends FlatSpec with Matchers {
val instance = ReflectionUtils.newInstance[TestClassNoArgs](classOf[TestClassNoArgs].getName)
instance.x shouldBe 123
}
OpPipelineStageReader

it should "return object instance by its class name" in {
val instance = ReflectionUtils.newInstance[TestObject.type](TestObject.getClass.getName)
instance.x shouldBe 456
Expand Down