https://kotlinlang.org logo
#atrium
Title
c

christophsturm

06/07/2018, 11:49 AM
I’m trying to get startet with atrium, but when i add
assert(4 + 6).isLessThan(5)
to my code it does not offer to import anything and uses the assert(boolean) from the kotlin standard lib
r

robstoll

06/07/2018, 11:52 AM
Have you set up your own assertion verb or do you use a predefined one?
in case you use the predefined assertion verb, then import it:
ch.tutteli.atrium.verbs.assert.asssert
c

christophsturm

06/07/2018, 11:53 AM
ah ok i just skipped over the part with creating own assertion verbs. i assumed its about custom matchers. now it makes sense
ch.tutteli.atrium.verbs.assert.asssert does not seem to be contained in my 0.6.0 jar file
r

robstoll

06/07/2018, 11:55 AM
ah... you need to define a dependency:
Copy code
testCompile "ch.tutteli:atrium-verbs:$atrium_version"
The next version will contain the predefined verbs in the bundle. I see that it should be easier to start off using Atrium
5 Views