This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package personal.belun; | |
import org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.kubek2k.springockito.annotations.ReplaceWithMock; | |
import org.kubek2k.springockito.annotations.SpringockitoContextLoader; | |
import org.powermock.modules.junit4.rule.PowerMockRule; | |
import org.springframework.beans.factory.annotation.Autowired; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\Java\jdk1.6.0_38\bin\java" -ea -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.1\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\ext\sunjce_provider.jar;C:\Progra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.collect.LinkedListMultimap; | |
import com.google.common.collect.Multimap; | |
import org.apache.commons.lang3.StringUtils; | |
import java.io.*; | |
import java.util.*; | |
import java.util.regex.Pattern; | |
public class DataTranslator { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package binaryTree; | |
import java.io.Serializable; | |
public class Leaf implements Visualizable, Serializable { | |
private int value; | |
public Leaf(int value) { | |
this.value = value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Will display: null | |
public class Weird { | |
static class Collaborator { | |
private final String someText; | |
public Collaborator(String text) { | |
this.someText = text; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Input { | |
public static MaskableInput filteredBy(Mask mask) { | |
return new MaskableInput(mask); | |
} | |
static class MaskableInput { | |
private Mask mask; | |
private MaskableInput(Mask mask) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user=> (defprotocol Fun-Time (drinky-drinky [_])) | |
Fun-Time | |
user=> (defrecord Someone [nick-name preffered-drink] Fun-Time (drinky-drinky [_] (str nick-name " (having " preffered-drink ") : uuumm"))) | |
user.Someone | |
user=> (def dude (Someone. "belun" "daiquiri")) | |
#'user/dude | |
user=> (drinky-drinky dude) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject play-with-midje "1.0" | |
:description "Playground for messing around with Midje" | |
:dependencies [[org.clojure/clojure "1.3.0-beta3"]] | |
:dev-dependencies [[midje "1.3-alpha1"] | |
[lein-midje "1.0.0"]]) | |
user=> (use 'midje.sweet) | |
CompilerException java.lang.RuntimeException: Unable to resolve symbol: print-doc in this context, compiling:(clojure/contrib/ns_utils.clj:67) |