• Code
  • Tags
  • Users
  • Titles
  • Log in
  • Feedback
  • FAQ
Share Code
Welcome to ForkCan.com

ForkCan is all about sharing code in a social way.

Discuss, debate or argue with other devs about their or your own code.

Give other devs feedback or make a Fork (Make a better version of a shared code).

Rate the code, if you use the code mark it as used so others can see if the shared code is used by someone.

Help each other to be better devs and to be more productive.


Features not working yet:

Flag a post

Tagged code 'junit' feeds
Latest activity

Tagged Code

Views Used Newest Oldest

452
Views
JUnit 4 tests in JUnit 3 suite
By Mattias Jiderhamn   November 13, 2010 11:14 AM

"Include JUnit 4 classes in a JUnit 3 suite() built with DirectorySuiteBuilder fom junit-addons"
java

Mark 'java' tag as 'like'

Mark 'java' tag as 'ignore'

junit

Mark 'junit' tag as 'like'

Mark 'junit' tag as 'ignore'

0 0 0 0


1.92k
Views
Spring auto wire with mock objects
By Mattias Jiderhamn   November 12, 2010 9:02 AM

"JUnit 4 @Rule implementation that uses Mockito mocked objects for Springs AspectJ auto wiring"
aspectj

Mark 'aspectj' tag as 'like'

Mark 'aspectj' tag as 'ignore'

java

Mark 'java' tag as 'like'

Mark 'java' tag as 'ignore'

junit

Mark 'junit' tag as 'like'

Mark 'junit' tag as 'ignore'

spring

Mark 'spring' tag as 'like'

Mark 'spring' tag as 'ignore'

0 0 0 0


573
Views
Detecting memory leak in unit test
By Olivier   July 22, 2010 12:17 PM

"JUnit assertion method and code sample to verify that an object is garbage collected correctly and does not lead to memory leak"
garbage-collector

Mark 'garbage-collector' tag as 'like'

Mark 'garbage-collector' tag as 'ignore'

java

Mark 'java' tag as 'like'

Mark 'java' tag as 'ignore'

junit

Mark 'junit' tag as 'like'

Mark 'junit' tag as 'ignore'

unittest

Mark 'unittest' tag as 'like'

Mark 'unittest' tag as 'ignore'

unit-test

Mark 'unit-test' tag as 'like'

Mark 'unit-test' tag as 'ignore'

0 0 0 0


Squeed
Made by: Fredrik Normén 2010