https://kotlinlang.org logo
Title
a

amanda.hinchman-dominguez

06/19/2018, 2:41 AM
I'm cutting out docker for the time being just to have one variable at a time solving the deployment issue. It works fine on localhost, but seems to be a different story on heroku for spring and kotlin
g

gildor

06/19/2018, 2:49 AM
What is exactly your problem with mocking?
a

amanda.hinchman-dominguez

06/19/2018, 2:52 AM
I'm not focused on that particular issue at the moment, but when I was last trying to work with it, I was having a really tough time with setting up the proper configurations for springboottesting in mockito (i.e. automatic configuration set to my App::class.java
expected Array<KClass> but found Class<App>
)
d

dave08

06/19/2018, 2:52 AM
And with Docker? Usually generating a fatjar from a multistage gradle -> openjdk-alpine does nicely for Ktor and Vert.x that I've tried it on...
a

amanda.hinchman-dominguez

06/19/2018, 2:52 AM
That, I'm actually about to post in main
d

dave08

06/19/2018, 2:54 AM
Both Ktor and Vert.x have instructions for making a fatjar, spring doesn't?
a

amanda.hinchman-dominguez

06/19/2018, 2:56 AM
Spring does yeah