Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 15 21:43

    xvik on gh-pages

    Publish 5.4.1 documentation (compare)

  • Jan 15 21:41

    xvik on gh-pages

    Publish 5.4.1 documentation (compare)

  • Jan 15 21:22

    xvik on master

    update docs for updated extensi… (compare)

  • Jan 13 11:10

    dependabot[bot] on gradle

    (compare)

  • Jan 13 11:10

    xvik on master

    Bump com.gradle.enterprise from… Merge pull request #211 from xv… (compare)

  • Jan 13 11:10
    xvik closed #211
  • Jan 13 05:36
    Kalyan-M closed #208
  • Jan 13 05:36
    Kalyan-M commented #208
  • Jan 12 23:42
    codecov-commenter commented #211
  • Jan 12 23:38
    codecov-commenter commented #211
  • Jan 12 23:38
    codecov-commenter commented #211
  • Jan 12 23:38
    codecov-commenter commented #211
  • Jan 12 23:38
    codecov-commenter commented #211
  • Jan 12 23:37
    codecov-commenter commented #211
  • Jan 12 23:33
    codecov-commenter commented #211
  • Jan 12 23:13
    dependabot[bot] labeled #211
  • Jan 12 23:13
    dependabot[bot] opened #211
  • Jan 12 23:13

    dependabot[bot] on gradle

    Bump com.gradle.enterprise from… (compare)

  • Jan 12 13:15

    xvik on master

    fix bom module link (compare)

  • Jan 06 19:21
    xvik commented #208
Vyacheslav Rusakov
@xvik
oh! its a mistake, sorry .. junit example was based on spock example
no need to extend anything for junit
John LaBarge
@johnlabarge
so how does the ClientSupport object injection work?
when I try to run it I get an error : should have no parameters
example test, ignore @Nested - its not important.. just was used for this exact test
ClientSupport is injected as test method parameter (could be also used as Before/after method parameter)
John LaBarge
@johnlabarge
yeah when I try to do that I'm getting "should 0have no parameters" exception
Trying to figure out what I'm missing
Vyacheslav Rusakov
@xvik
are you using junit 5?
John LaBarge
@johnlabarge
I think so
oop
*oops had a stray 4 dependency in my gradle file
still same issue :(
may need a clean
Vyacheslav Rusakov
@xvik
junit4 dependency itself is not a problem as junit5 use completely different package (and so even different Test annotation class)
John LaBarge
@johnlabarge
the exception is coming from here though: at org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
Vyacheslav Rusakov
@xvik
seems junit 4 tries to run it
are you using gradle to run tests?
John LaBarge
@johnlabarge
I tried gradle and IDE
Vyacheslav Rusakov
@xvik
useJUnitPlatform()
for project itself you need (run from IDE should work with this)
testImplementation 'io.dropwizard:dropwizard-testing'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter'
John LaBarge
@johnlabarge
oh !
gradle test now works
Ide is borked differently tho
Vyacheslav Rusakov
@xvik
idea?
John LaBarge
@johnlabarge
yep :)
Vyacheslav Rusakov
@xvik
))
hmm never have problem running junit5 tests.. it should work
guicey itself use all kinds of tests (spock, junit4, junit5) and idea could run anything without additinoal configurations
John LaBarge
@johnlabarge
found an SO post
John LaBarge
@johnlabarge
ah it's not running any tests
okey wrong annotation!
Vyacheslav Rusakov
@xvik
))
John LaBarge
@johnlabarge
I suppose these are normal with guice right now? Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1
Vyacheslav Rusakov
@xvik
John LaBarge
@johnlabarge
thanks for your help!
Vyacheslav Rusakov
@xvik
you are welcome!
John LaBarge
@johnlabarge
Anyone have an example of using c3p0 connection pool?
Vyacheslav Rusakov
@xvik
It's hard because dropwizard's DataSourceFactory is tightly integrated with tomcat pool. You can see maintained hikaricp bundle (https://github.com/mtakaki/dropwizard-hikaricp) which have to replace dropwizard db and hibernate modules in order to change used pool. If you really need c3p0 it could be an implementation example
John LaBarge
@johnlabarge
yeah really just for jdbi3 though not using hibernate
perhaps it's worth starting a new OSS project
Vyacheslav Rusakov
@xvik
I would suggest to go with the default. In most cases changing of connection pool have no sense (most likely you'll not have such load to gain anything from it)
John LaBarge
@johnlabarge
is there an example project somewhere I can look at that has the full repository/service/controller bits?
John LaBarge
@johnlabarge
yep! thanks!
John LaBarge
@johnlabarge
Are there any testing equivalents to the @Sql annotation which can load sql into a test db pre running a test?
(@Sql annotation comes with spring)
Vyacheslav Rusakov
@xvik
no