Skip to content

Unittest #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![codecov.io](https://codecov.io/github/derjust/spring-data-dynamodb/coverage.svg?branch=master)](https://codecov.io/github/derjust/spring-data-dynamodb?branch=master) [![Build Status](https://travis-ci.org/derjust/spring-data-dynamodb.svg?branch=master)](https://travis-ci.org/derjust/spring-data-dynamodb)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.derjust/spring-data-dynamodb/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.derjust/spring-data-dynamodb)
# Spring Data DynamoDB ( Work in Progress ) #

The primary goal of the [Spring Data](http://www.springsource.org/spring-data) project is to make it easier to build Spring-powered applications that use data access technologies. This module deals with enhanced support for Amazon DynamoDB based data access layers.
Expand Down
60 changes: 60 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<!--
<module name="RegexpSingleline">-->
<!-- \s matches whitespace character, $ matches end of line. --><!--
<property name="format" value="\s+$" />
</module>
<module name="FileTabCharacter">
<property name="eachLine" value="true" />
</module>
-->
<module name="TreeWalker">
<module name="ModifierOrder" />
<module name="EmptyBlock" />
<module name="AvoidStarImport" />
<module name="UnusedImports" />
<!--
<module name="ImportOrder">
<property name="ordered" value="true" />
<property name="separated" value="true" />
<property name="option" value="top" />
<property name="sortStaticImportsAlphabetically"
value="true" />
</module>
-->
<module name="RegexpSinglelineJava">
<property name="format" value="System\.out(?:\.|::)println"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="System\.err(?:\.|::)println"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\.printStackTrace"/>
</module>
<!-- Deprecated DynamoDB paramters -->
<!--
<module name="RegexpSinglelineJava">
<property name="format" value="setKeyConditions"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="withKeyConditions"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="setQueryFilter"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="withQueryFilter"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="setScanFilter"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="withScanFilter"/>
</module>
-->
</module>
</module>
119 changes: 92 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?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">

<modelVersion>4.0.0</modelVersion>
<groupId>org.socialsignin</groupId>
<artifactId>spring-data-dynamodb</artifactId>
Expand All @@ -19,14 +18,17 @@
<properties>
<spring.version>4.2.0.RELEASE</spring.version>
<hibernate-validator.version>5.2.2.Final</hibernate-validator.version>
<aws-java-sdk.version>1.10.39</aws-java-sdk.version>
<aws-java-sdk.version>1.10.43</aws-java-sdk.version>
<mockito.version>1.10.19</mockito.version>

<cdi>1.2</cdi>
<commons.lang>3.4</commons.lang>
<logback>1.1.3</logback>

<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -71,6 +73,13 @@
<artifactId>commons-lang3</artifactId>
<version>${commons.lang}</version>
</dependency>


<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -100,7 +109,7 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>

<!-- DynamoDB -->
<dependency>
<groupId>com.amazonaws</groupId>
Expand Down Expand Up @@ -131,14 +140,61 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.15</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>6.6</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>verify-style</id>
<phase>process-resources</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<logViolationsToConsole>true</logViolationsToConsole>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand All @@ -164,7 +220,7 @@
<artifactItem>
<groupId>com.jcabi</groupId>
<artifactId>DynamoDBLocal</artifactId>
<version>2015-04-27</version>
<version>2015-07-16</version>
<type>zip</type>
<outputDirectory>${project.build.directory}/dynamodb-dist</outputDirectory>
<overWrite>false</overWrite>
Expand Down Expand Up @@ -192,6 +248,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-dynamodb-maven-plugin</artifactId>
<version>0.7.1</version>
<configuration>
<tables>
<table>src/test/resources/usertable.json</table>
</tables>
</configuration>
<executions>
<execution>
<id>dynamodb-integration-test</id>
<goals>
<goal>start</goal>
<goal>create-tables</goal>
<goal>stop</goal>
</goals>
<configuration>
<port>${dynamodblocal.port}</port>
<dist>${project.build.directory}/dynamodb-dist</dist>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
Expand All @@ -210,29 +290,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<scm>
<url>https://github.com/michaellavelle/spring-data-dynamodb</url>
<connection>scm:git:ssh://github.com/michaellavelle/spring-data-dynamodb.git</connection>
<developerConnection>scm:git:ssh://[email protected]/michaellavelle/spring-data-dynamodb.git</developerConnection>
<tag>spring-data-dynamodb-1.0.5</tag>
</scm>
<url>https://github.com/derjust/spring-data-dynamodb</url>
<connection>scm:git:ssh://github.com/derjust/spring-data-dynamodb.git</connection>
<developerConnection>scm:git:ssh://[email protected]/derjust/spring-data-dynamodb.git</developerConnection>
</scm>

<repositories>
<repository>
Expand Down
Loading