Skip to content

Instantly share code, notes, and snippets.

View marcphilipp's full-sized avatar

Marc Philipp marcphilipp

View GitHub Profile
@marcphilipp
marcphilipp / oracle.sql
Created July 29, 2014 06:54
IndexColumn migration script
update tbl t1
set t1.reihenfolge = (with t3 as
(select t2.id, row_number() over (partition by modell order by bo) nr
from tbl t2)
select nr from t3
where t3.id = t1.id)
@marcphilipp
marcphilipp / README.md
Last active August 29, 2015 14:21
JUnit Modules

JUnit 5 Modules

New Group ID for Maven: org.junit

  • junit-assertion-api: Can be used by assertion frameworks like Hamcrest, AssertJ, or Truth.
    • org.junit.ComparisonFailure
    • org.junit.AssumptionViolatedException (without Matcher dependency)
  • junit-core (depends on junit-assertion-api)
    • No Hamcrest dependency (except for tests)
@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;
@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
<!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 / 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 / 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 / PrimeFactorsTests.h
Created August 5, 2012 10:11
Objective-C Intro @ SoCraTes 2012 (by Johannes Seitz)
//
// primefactorsTests.h
// primefactorsTests
//
// Created by Marc Philipp on 04.08.12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>