Can't get CofoJa to work

130 views
Skip to first unread message

Sasha Naidoo

unread,
Apr 7, 2015, 6:28:47 AM4/7/15
to cof...@googlegroups.com

hi :)

I setup everything but when i run the programme it doesn’t give me any errors just an output of: -15.

What could be the problem?

Thanks.
Sasha

Sasha Naidoo

unread,
Apr 7, 2015, 6:29:36 AM4/7/15
to cof...@googlegroups.com
Actually I just meant that there are no errors when I run an example when there should be pre-condition violations.

Nhat Minh Lê

unread,
Apr 7, 2015, 6:34:56 AM4/7/15
to cof...@googlegroups.com
Could be anything. What commands do you run? On what code?
Are .contracts files being produced? Are they in your classpath
alongside your .class ? Do you run with the agent enabled?

Nhat
> --
> You received this message because you are subscribed to the Google Groups
> "cofoja" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cofoja+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Sasha Naidoo

unread,
Apr 9, 2015, 5:03:02 PM4/9/15
to cof...@googlegroups.com
Hi,

I managed to get my normal code working but have encountered a new problem. My code doesn't seem to want to produce .contract files if there are private variables other than ones from the standard library such as double or string. I have an array list with transaction objects stored in it to model a bank account but the cofoja fails to work. Suggestions?

Thanks.

Sent from my iPhone
> You received this message because you are subscribed to a topic in the Google Groups "cofoja" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/cofoja/Mn5RQqeqR28/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to cofoja+un...@googlegroups.com.

Sasha Naidoo

unread,
Apr 10, 2015, 3:50:27 AM4/10/15
to cof...@googlegroups.com
Oh and another question, do you have any sample code for JUnit? Something that checks that the invariant error exception is thrown for example?

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages