Skip to content

Instantly share code, notes, and snippets.

View britt's full-sized avatar

Britt Crawford britt

View GitHub Profile
@Test
public void shouldLoadAllBeansFromSpringContext() throws Exception {
for(String bean : new String[]{"productInputFormat", "upgradingMapper", "upgradeJob"})
Assert.assertNotNull(context.getBean(bean));
}
@britt
britt / gist:9746908
Created March 24, 2014 19:06
keybase.md
### Keybase proof
I hereby claim:
* I am britt on github.
* I am britt (https://keybase.io/britt) on keybase.
* I have a public key whose fingerprint is 018B B7FF 7962 3A4F 1A47 E183 7C88 7E4E E58C 84B3
To claim this, I am signing this object:
Verifying myself: My Bitcoin username is +britt. https://onename.io/britt
$: << File.dirname(__FILE__)
require 'spec_helper'
describe "Product REST Service findByUpdateDate" do
before(:each) do
end
it 'should only find products created within the date ran ge given' do
public BookInfoJaxBImpl(BookInfo bookInfo) {
if(bookInfo==null)
throw new IllegalArgumentException("BookInfo passed into the constructor cannot be null.");
else
load(bookInfo);
}
private void load(BookInfo bookInfo) {
//load the values of BookInfo into this instance
}
@britt
britt / readme.md
Last active August 29, 2015 14:19 — forked from max-mapper/readme.md

Interdisciplinary Open Source Community Conferences

Criteria

  • Must be an event that someone involved in open source would be interested in attending
  • Must be a community oriented event (no corporate owned for-profit events here please)
  • Can't be about a specific language/framework.

Leave suggestions in the comments below

javascript:(
function(){
var k=" -site:expertsexchange.com -site:swik.net";
if(document.f){
document.f.q.value=document.f.q.value+k;
}else{
document.gs.q.value=document.gs.q.value+k
}})()
javascript:(function(){var k=" -site:experts-exchange.com -site:swik.net";if(document.f){document.f.q.value=document.f.q.value+k;}else{document.gs.q.value=document.gs.q.value+k}})()
public String[] getJobNames() {
return Transform.map(new Unary<JobConf, String>(){
public String f(JobConf item) {
return item.getJobName();
}
}, context.getBeansOfType(JobConf.class).values()).toArray(new String[]{});
}
def get_job_names
context.getBeansOfType(JobConf).collect do |beanGetJobName,bean|
bean.getJobName
end
end