Skip to content

Commit

Permalink
Merge pull request #75 from ArcBees/codestyle
Browse files Browse the repository at this point in the history
Update checkstyle and remove build tools
  • Loading branch information
meriouma committed Jan 12, 2017
2 parents e3ad06c + 907ecbc commit 9154db5
Show file tree
Hide file tree
Showing 61 changed files with 316 additions and 550 deletions.
13 changes: 0 additions & 13 deletions jukito-build-tools/pom.xml

This file was deleted.

229 changes: 0 additions & 229 deletions jukito-build-tools/src/main/resources/org/jukito/checkstyle.xml

This file was deleted.

17 changes: 0 additions & 17 deletions jukito-build-tools/src/main/resources/org/jukito/suppressions.xml

This file was deleted.

17 changes: 11 additions & 6 deletions jukito-samples/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -11,12 +12,16 @@
<artifactId>jukito-samples</artifactId>
<name>Jukito Samples</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jukito</groupId>
<artifactId>jukito-build-tools</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

package org.jukito.samples.modules;

import com.google.inject.AbstractModule;

import org.jukito.samples.Engine;
import org.jukito.samples.PetrolEngine;

import com.google.inject.AbstractModule;

public class PetrolLineModule extends AbstractModule {
@Override
protected void configure() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@

import static org.mockito.Mockito.verify;


/**
* A simple test with one mock (engine) and one real object (FordMustang)
* A simple test with one mock (engine) and one real object (FordMustang).
*/
@RunWith(JukitoRunner.class)
public class FordMustangTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static org.mockito.Mockito.verify;

/**
* A simple test with one real DOC (binding in test)
* A simple test with one real DOC (binding in test).
*/
@RunWith(JukitoRunner.class)
public class FordMustangTest2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

package org.jukito.samples;

import javax.inject.Inject;

import org.jukito.JukitoModule;
import org.jukito.JukitoRunner;
import org.jukito.samples.modules.DieselLineModule;
import org.junit.Test;
import org.junit.runner.RunWith;

import javax.inject.Inject;

import static org.mockito.Mockito.verify;

/**
Expand Down
3 changes: 2 additions & 1 deletion jukito/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<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">
<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>

<parent>
Expand Down
4 changes: 2 additions & 2 deletions jukito/src/main/java/org/jukito/All.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

package org.jukito;

import com.google.inject.BindingAnnotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.google.inject.BindingAnnotation;

/**
* This annotation can be used on one or more parameter of a test function.
* The test function will be executed multiple times, one for each value bound
Expand Down
10 changes: 5 additions & 5 deletions jukito/src/main/java/org/jukito/BindingsCollector.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

package org.jukito;

import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import com.google.inject.AbstractModule;
import com.google.inject.Binding;
import com.google.inject.Key;
Expand All @@ -39,11 +44,6 @@
import com.google.inject.spi.StaticInjectionRequest;
import com.google.inject.spi.UntargettedBinding;

import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
* Collects all the bindings from a Guice module, so that Jukito can identify missing
* bindings and bind them to mock or instances.
Expand Down
2 changes: 1 addition & 1 deletion jukito/src/main/java/org/jukito/Description.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.lang.annotation.Target;

/**
* Annotation can be used for better test description (instead of camel case test method)
* Annotation can be used for better test description (instead of camel case test method).
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Loading

0 comments on commit 9154db5

Please sign in to comment.