Skip to content

Instantly share code, notes, and snippets.

View marcphilipp's full-sized avatar

Marc Philipp marcphilipp

View GitHub Profile
@marcphilipp
marcphilipp / StackTrace01.txt
Created May 11, 2012 09:06
BugReg-Stacktraces für Entwicklertag 2012
!ENTRY org.eclipse.ui.workbench 4 0 2012-05-11 10:24:25.368
!MESSAGE An unexpected exception was thrown.
!STACK 0
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
at java.util.LinkedList$ListItr.next(LinkedList.java:886)
at de.andrena.golf.course.model.GolfCourse.anyHoleIsDirty(GolfCourse.java:235)
at de.andrena.golf.course.model.GolfCourse.isDirty(GolfCourse.java:141)
at de.andrena.golf.course.client.ui.internal.editcourses.CourseEditor.isDirty(CourseEditor.java:254)
at org.eclipse.ui.internal.SaveAction.updateState(SaveAction.java:98)
@marcphilipp
marcphilipp / WebHome
Created April 18, 2012 21:11
Three-column Foswiki WebHome
---+!! Header
<sticky>
Allgemeiner Einleitungstext…
<div style="clear:both"></div>
<div style="margin-top:-1em;">
<div style="float:left;width:310px;padding-right:20px;margin-right:20px;">
@marcphilipp
marcphilipp / XmlDatabaseTest.java
Created February 22, 2012 19:51
Database Tests With DbUnit
package de.marcphilipp.dbunit.example;
import static org.h2.engine.Constants.UTF8;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
import java.io.File;
import javax.sql.DataSource;
@marcphilipp
marcphilipp / Eintrag.java
Created September 18, 2011 12:07
SWT Tree Drag and Drop
package de.marcphilipp.dnd.model;
public class Eintrag {
private final String description;
private Gruppe gruppe;
public Eintrag(String description) {
this.description = description;
}
<!DOCTYPE html>
<html>
<head>
<title>Sum Up Tasks</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.13/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<style>
#sum-bar h4 {
@marcphilipp
marcphilipp / junit-export.xml
Created May 30, 2011 18:25
Error Message when Running FitNesse Tests using JsSlim
!style_error(Unknown construction message:) sun.org.mozilla.javascript.internal.EvaluatorException: illegal character (#107) in at line number 107
@marcphilipp
marcphilipp / MathTheories.java
Created November 5, 2010 22:24
Simple JUnit theory using junit-quickcheck
package de.xpdays.junit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeTrue;
import org.junit.experimental.theories.Theories;
import org.junit.experimental.theories.Theory;
import org.junit.runner.RunWith;
import com.pholser.junit.parameters.ForAll;