Skip to content

Instantly share code, notes, and snippets.

View mattelacchiato's full-sized avatar

Matthias Brandt mattelacchiato

  • ino.io
  • Hamburg, Germany
View GitHub Profile
import org.junit.Test;
public class MyTest {
private class A {};
private class B extends A {};
private class C {};
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.robolectric.res.ViewNode.constructView(ViewNode.java:162)
at org.robolectric.res.ViewNode.create(ViewNode.java:90)
at org.robolectric.res.RoboLayoutInflater.doInflate(RoboLayoutInflater.java:28)
at org.robolectric.res.RoboLayoutInflater.doInflate(RoboLayoutInflater.java:31)
at org.robolectric.res.RoboLayoutInflater.inflateView(RoboLayoutInflater.java:48)
at org.robolectric.shadows.ShadowLayoutInflater.inflate(ShadowLayoutInflater.java:49)
at android.view.LayoutInflater.inflate(LayoutInflater.java)
at de.splitstudio.utils.ObjectListAdapter.getView(ObjectListAdapter.java:43)
at org.robolectric.shadows.ShadowAdapterView.addViews(ShadowAdapterView.java:314)
@mattelacchiato
mattelacchiato / UglyPoker.java
Created June 3, 2011 15:14
Ugly Java Code to Refactor
/*
am 15. Juni sind wir von blau.de bei der FH-Wedel Firmenkontaktmesse und
werden 5 UMTS-Surfsticks[1] verlosen!
Dazu gibt es folgende Aufgabe:
Auf github[2] findet ihr eine kleine, aber ziemlich hässliche Java
Klasse. Deine Aufgabe ist es, den Code aufzuräumen und lesbarer zu
machen: Bezeichner, Typen, Strukturen, Methodensignaturen alles kann
verbessert werden. Anschließend schickst Du Deine Änderungen bis
spätestens 16. Juni, 23:59 Uhr an matthias.brandt@blau.de. Die schönsten
@mattelacchiato
mattelacchiato / gist:578787
Created September 14, 2010 09:25
Move or copy complete lines in vim
"my own line movement kram
"Alt+Up, Alt+k moves line up
:nmap <A-Up> :m .-2<Enter>
:nmap <A-k> :m .-2<Enter>
:imap <A-Up> :m .-2<Enter>
:imap <A-k> :m .-2<Enter>
:vmap <A-Up> :m .-2<Enter>
:vmap <A-k> :m .-2<Enter>
"Alt+Down, Alt+j moves line down