Skip to content

Instantly share code, notes, and snippets.

@mshanu
mshanu / gist:283352faaa6eac44f671be6a60f8c534
Created November 22, 2016 17:34
Test util to create object and set fields
import org.springframework.test.util.ReflectionTestUtils;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
public class Mother<T> {
private Class<T> clazz;
private Map<String, Object> objectMap = new HashMap();
@mshanu
mshanu / gist:528a2808946095316154
Last active August 29, 2015 14:05
Vimrc setting for Javascript
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required