Skip to content

Instantly share code, notes, and snippets.

View charroch's full-sized avatar
🏠
Working from home

Carl-Gustaf Harroch charroch

🏠
Working from home
View GitHub Profile
sequential ^
"""Given the following json {"test": "value"}""" ! c1.getJson^
"""When applying jsonpath test"""! c1.getQuery^
"""Then I should get value"""! c1.checkResutl^
end
...
"""Given the following json {"test": [2]}"""
"""When applying jsonpath test"""
"""And applying jsonpath [#]"""
@charroch
charroch / gist:781300
Created January 15, 2011 21:50
Mixin solutions...
package novoda.mixin;
public class TestMixin extends Mixable implements WithTest {
/**
* @param args
*/
public static void main(String[] args) {
TestMixin mixin = new TestMixin();
mixin.sayHello("test");
}
/*
* Copyright 2010, Novoda ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@charroch
charroch / Main.java
Created July 15, 2009 08:07
OAuth access to jaiku
import net.oauth.OAuthAccessor;
import net.oauth.OAuthConsumer;
import net.oauth.OAuthServiceProvider;
import net.oauth.client.OAuthClient;
import net.oauth.client.httpclient4.HttpClient4;
public class Main {
public static void main(String[] args) throws Exception {
String consumerKey = "<KEY>";