Hello, module 1.4.2 gets into the business of implementing stuff, and the first check involves a mock with Mockito - the code is described, but the project appears to know thing about Mockito library yet? Is it inferred that I need to install it first?
I can probably (hopefully!) install Mockito no problem, just seems like step hasnāt been mentioned? And sorry if Iāve missed it
Yes Kristof - the course has a link on each module / page which goes straight to The Club with the mot-icta tag already set, so it shows only questions and comments related to the course, and a new question (my question) already had that tag set too - so hopefully iāve done the right thing?!
For Mark W or anyone - from googling, looks like Mockitoās probably meant to come via the org.junit.jupiter dependency?? and i also added a mockito dependency for good measure - but still getting the ācannot resolve symbol ā¦ā issues
It does look like I have bigger issues, as the very next check file called ProjectApiTest involves springboot and thatās not being recognised either ⦠help please @mwinteringham !
Hi Mark, thanks for replying. Sorry Iām not sure what Iām doing ⦠do i actually need to add anything to the pom.xml file under dependencies? Or should the file from your github repo be enough as it was? I tried Reload Project as this point.
Iām a bit confused by āimportā / āreimportā term as technically i donāt see those options in menus, but under Maven tool window i do see āReloadā projects, and IntelliJ docs guide to this when they talk of āimportingā ā¦
Right now, after a lot of right-click menu actions within the editors on all the red errors, just steps that were complete guesswork by me and not obvious at all, iāve now got no errors and a few imports per class - but not convinced this is what you were meaning? Please see screen shots - one for MockedUnitTest and one for ProjectApiTest.
Thanks - and sorry - if the above is wrong, I imagine a 2 minute call would clear up what iām supposed to be selecting and from where!
Itās not clear to me what the error is at this point. Do you mind sending another screenshot with the error in as it might make it easier for me to diagnose.
Hello Mark - to use another example from 1.5.2 - added the LoginPage class code and it has all these unknown references in red. But i am proceeding by hovering over each one then choosing either āimport classā or 'More actionsā¦` then finding an import. Maybe this is what was meant all along?
And Iāll find out once i get to the end of the Assert section of the course whether this all works after all
So it looks to me like either the project as a whole hasnāt been imported correctly or IntelliJ needs an SDK setup. What do you see when you head to Project settings > Project and Project settings > SDKs?
And another example from 1.6.3 - the Assert one-liner for the MockedUnitCheck - more methods not recognised without importing further classes ⦠but I think you get the problem now
I think so ā¦? Does this image show you what youāre looking for?
(And i also tried a clean project into a different directory, following the 2 x README command line instructions, but got the same situation as soon as i tried the MockedUnitTest example file again)