start new:
tmux
start new with session name:
tmux new -s myname
| import static org.hamcrest.Matchers.is; | |
| import static org.junit.Assert.assertThat; | |
| import java.util.Locale; | |
| import java.util.Set; | |
| import javax.validation.ConstraintViolation; | |
| import javax.validation.Validation; | |
| import javax.validation.Validator; | |
| import javax.validation.ValidatorFactory; |
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;| import static org.hamcrest.MatcherAssert.assertThat; | |
| import static org.hamcrest.Matchers.allOf; | |
| import static org.hamcrest.Matchers.any; | |
| import static org.hamcrest.Matchers.anyOf; | |
| import static org.hamcrest.Matchers.anything; | |
| import static org.hamcrest.Matchers.describedAs; | |
| import static org.hamcrest.Matchers.endsWith; | |
| import static org.hamcrest.Matchers.equalTo; | |
| import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace; | |
| import static org.hamcrest.Matchers.instanceOf; |
| Eclipse Template Unit Test Import | |
| In Eclipse go Preferences>Java>Edito>Templates>New | |
| • Name: jimp | |
| • context: Java | |
| • Description: Unit test imports | |
| • Pattern: | |
| import static java.lang.String.format; | |
| import static org.mockito.BDDMockito.*; | |
| import static org.junit.Assume.*; |
| #Organize Import Order | |
| #Wed Mar 28 14:36:55 CEST 2012 | |
| 4=com | |
| 3=org | |
| 2=javax | |
| 1=java | |
| 0=\# |
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <profiles version="12"> | |
| <profile kind="CodeFormatterProfile" name="Audi" version="12"> | |
| <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
| <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
| <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
| <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
| <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
| <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
| <setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
| http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.audi.sample</groupId> | |
| <artifactId>sample</artifactId> | |
| <version>1.0.0</version> | |
| <packaging>pom</packaging> |
| package com.pobox.cbarham.testhelpers; | |
| import static org.hamcrest.Matchers.equalTo; | |
| import static org.hamcrest.Matchers.not; | |
| import static org.junit.Assert.assertEquals; | |
| import static org.junit.Assert.assertNotNull; | |
| import static org.junit.Assert.assertNotSame; | |
| import static org.junit.Assert.assertThat; | |
| import static org.junit.Assert.fail; | |
| import junit.framework.AssertionFailedError; |
| package com.pobox.cbarham.testhelpers; | |
| import static org.hamcrest.Matchers.is; | |
| import static org.junit.Assert.assertThat; | |
| import static org.junit.Assert.assertTrue; | |
| import java.util.ArrayList; | |
| import java.util.Collections; |