Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
marcingrzejszczak/spock-subjects-collaborators-extension
Spock subjects-collaborators extension
People
Repo info
Activity
Oct 11 2018 19:53
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
fixed
(70)
Oct 11 2018 19:51
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
canceled
(69)
Oct 08 2018 18:18
Travis
marcingrzejszczak/spock-subjects-collaborators-extension#24
fixed
(68)
Oct 08 2018 17:56
Travis
marcingrzejszczak/spock-subjects-collaborators-extension#23
still failing
(67)
Jun 01 2018 13:22
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
broken
(66)
Jun 01 2018 13:20
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
canceled
(65)
Jun 01 2018 09:45
Travis
marcingrzejszczak/spock-subjects-collaborators-extension#22
broken
(64)
Apr 09 2017 18:42
Travis
marcingrzejszczak/spock-subjects-collaborators-extension@b2d2b70
(issues_
#20
)
passed
(62)
Oct 28 2016 07:28
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(1.2.2)
failed
(61)
Jun 13 2016 08:39
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(1.2.1)
failed
(54)
Jun 13 2016 08:32
Travis
marcingrzejszczak/spock-subjects-collaborators-extension@1f3bf64
(1.2.0)
failed
(52)
Jun 07 2016 17:41
Travis
marcingrzejszczak/spock-subjects-collaborators-extension@db9d0d6
(issues_
#14
_enhanced_injection)
passed
(48)
Jan 31 2016 10:57
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
fixed
(47)
Jan 29 2016 15:07
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
broken
(46)
Jan 29 2016 14:59
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
broken
(46)
Jan 29 2016 09:48
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(master)
broken
(46)
Jun 18 2015 21:15
Travis
marcingrzejszczak/spock-subjects-collaborators-extension#11
errored
(44)
Apr 02 2015 22:44
Travis
marcingrzejszczak/spock-subjects-collaborators-extension
(1.1.0)
passed
(35)
Apr 02 2015 22:28
Travis
marcingrzejszczak/spock-subjects-collaborators-extension@aec123b
(issues/8-and-9-honor-instantiated-subject)
passed
(32)
Marcin Grzejszczak
@marcingrzejszczak
yeah you can drag and drop
you can also paste them
you can use markdown
Ashish Meshram
@ashishjmeshram
Oh Okay
UserDAOImpl.java
UserDAO.java
SecurityUtil.java
Marcin Grzejszczak
@marcingrzejszczak
GenericDAOImpl too please
Ashish Meshram
@ashishjmeshram
GenericDAOImpl.java
GenericDAO.java
Here you go !
Marcin Grzejszczak
@marcingrzejszczak
ok thx
Ashish Meshram
@ashishjmeshram
I really appreciate you trying to help me out here
Marcin Grzejszczak
@marcingrzejszczak
np - give me a sec - I'll write a test
Ashish Meshram
@ashishjmeshram
sure
Marcin Grzejszczak
@marcingrzejszczak
what's this
make(a(UserMaker.User));
it's just some builder for User ?
Ashish Meshram
@ashishjmeshram
yep
It just creates a default user.
Marcin Grzejszczak
@marcingrzejszczak
ok I've reproduced it
Ashish Meshram
@ashishjmeshram
Okay
any idea on what is the issue here ?
Marcin Grzejszczak
@marcingrzejszczak
yeah actually I do
you're mixing unit and integration tests
you want my lib to construct a new instance of an interface
interface don't have constructors
so I can't just initialize it
if you change the UserService to UserServiceImpl it should work
Ashish Meshram
@ashishjmeshram
ohh
Ohh yes Now it worked
But is that ok
?
Marcin Grzejszczak
@marcingrzejszczak
yes
Ashish Meshram
@ashishjmeshram
I mean this way ?
Marcin Grzejszczak
@marcingrzejszczak
beacuse my lib is for unit testing
Ashish Meshram
@ashishjmeshram
@Subject
UserServiceImpl userService
Marcin Grzejszczak
@marcingrzejszczak
I can't autowire your field - I'm not using Spring
Ashish Meshram
@ashishjmeshram
I am doing unit testing only
which is why I want to mock them
Marcin Grzejszczak
@marcingrzejszczak
so you're unit testing an implementation not the inteface
but this is a Subject
your system under test
Ashish Meshram
@ashishjmeshram
Ohh
Marcin Grzejszczak
@marcingrzejszczak
:)
Ashish Meshram
@ashishjmeshram
yeah you are right
:)
Marcin Grzejszczak
@marcingrzejszczak
answered -
http://stackoverflow.com/questions/35078869/exception-while-using-spock-for-java-unit-testing/35081203#35081203
Ashish Meshram
@ashishjmeshram
cool
thanks.
_