[pkg-eucalyptus-commits] r271 - / truth truth/debian truth/debian/patches truth/debian/source
Brian Thomason
iamfuzz-guest at alioth.debian.org
Wed Aug 29 05:31:53 UTC 2012
Author: iamfuzz-guest
Date: 2012-08-29 05:31:52 +0000 (Wed, 29 Aug 2012)
New Revision: 271
Added:
truth/
truth/debian/
truth/debian/changelog
truth/debian/compat
truth/debian/control
truth/debian/copyright
truth/debian/docs
truth/debian/patches/
truth/debian/patches/series
truth/debian/patches/use-old-expect-test.patch
truth/debian/rules
truth/debian/source/
truth/debian/source/format
Log:
Checked in libtruth for guava gwt bindings
Added: truth/debian/changelog
===================================================================
--- truth/debian/changelog (rev 0)
+++ truth/debian/changelog 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1,5 @@
+libtruth-java (0.7.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #686121)
+
+ -- Brian Thomason <brian.thomason at eucalyptus.com> Tue, 28 Aug 2012 16:52:51 +0000
Added: truth/debian/compat
===================================================================
--- truth/debian/compat (rev 0)
+++ truth/debian/compat 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1 @@
+8
Added: truth/debian/control
===================================================================
--- truth/debian/control (rev 0)
+++ truth/debian/control 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1,16 @@
+Source: libtruth-java
+Section: java
+Priority: extra
+Maintainer: Brian Thomason <brian.thomason at eucalyptus.com>
+Build-Depends: debhelper (>= 8.0.0), ant-optional, java7-jdk, javahelper
+Build-Depends-Indep: maven-repo-helper, junit4
+Standards-Version: 3.9.3
+Homepage: https://github.com/truth0
+
+Package: libtruth-java
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: assertion/proposition framework for Java unit tests
+ This package provides a assertion/proposition framework for Java unit tests.
+ It is considered alpha software but is currently needed and used by the Guava
+ GWT bindings.
Added: truth/debian/copyright
===================================================================
--- truth/debian/copyright (rev 0)
+++ truth/debian/copyright 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1,41 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libtruth-java
+Source: https://github.com/truth0/truth/commit/e3b40022c6e6b6a4fe33c04f51fb5b0c60e31ece
+
+Files: *
+Copyright: 2011-2012 David Saff
+ 2011-2012 Cristian Gruber
+License: Apache 2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
+Files: debian/*
+Copyright: 2012 Brian Thomason <brian.thomason at eucalyptus.com>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
Added: truth/debian/docs
===================================================================
--- truth/debian/docs (rev 0)
+++ truth/debian/docs 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1 @@
+README
Added: truth/debian/patches/series
===================================================================
--- truth/debian/patches/series (rev 0)
+++ truth/debian/patches/series 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1 @@
+use-old-expect-test.patch
Added: truth/debian/patches/use-old-expect-test.patch
===================================================================
--- truth/debian/patches/use-old-expect-test.patch (rev 0)
+++ truth/debian/patches/use-old-expect-test.patch 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1,78 @@
+Description: Revert to using version of ExpectTest.java from 0.5 release
+Author: Brian Thomason <brian.thomason at eucalyptus.com>
+Origin: upstream, https://raw.github.com/truth0/truth/84aa56ea5e48713b2555a5931160d65f13e23fe2/src/test/java/org/junit/contrib/truth/ExpectTest.java
+
+--- libtruth-java-0.7.0.orig/src/test/java/org/junit/contrib/truth/ExpectTest.java
++++ libtruth-java-0.7.0/src/test/java/org/junit/contrib/truth/ExpectTest.java
+@@ -16,55 +16,33 @@
+ */
+ package org.junit.contrib.truth;
+
++import java.util.Arrays;
++
++import org.junit.Ignore;
+ import org.junit.Rule;
+ import org.junit.Test;
+-import org.junit.rules.ExpectedException;
+-import org.junit.rules.MethodRule;
+ import org.junit.runner.RunWith;
+ import org.junit.runners.JUnit4;
+-import org.junit.runners.model.FrameworkMethod;
+-import org.junit.runners.model.Statement;
+
+ /**
+- * Tests (and effectively sample code) for the Expect verb (implemented as a
+- * rule)
++ * Tests (and effectively sample code) for the Expect
++ * verb (implemented as a rule)
+ *
+ * @author David Saff
+ * @author Christian Gruber (cgruber at israfil.net)
+ */
+ @RunWith(JUnit4.class)
+ public class ExpectTest {
+- private Expect oopsNotARule = Expect.create();
+-
+- private Expect EXPECT = Expect.create();
+- private ExpectedException thrown = ExpectedException.none();
+-
+- @Rule public MethodRule wrapper = new MethodRule() {
+- @Override
+- public Statement apply(Statement base, FrameworkMethod method, Object target) {
+- Statement expected = EXPECT.apply(base, method, target);
+- return thrown.apply(expected, method, target);
+- }
+- };
+-
+- @Test
+- public void expectTrue() {
+- EXPECT.that(4).isEqualTo(4);
+- }
+-
+- @Test
+- public void expectFail() {
+- thrown.expectMessage("All failed expectations:");
+- thrown.expectMessage("1. Not true that <abc> contains <x>");
+- thrown.expectMessage("2. Not true that <abc> contains <y>");
+- thrown.expectMessage("3. Not true that <abc> contains <z>");
+- EXPECT.that("abc").contains("x").and().contains("y").and().contains("z");
+- }
++ @Rule public Expect EXPECT = Expect.create();
+
+- @Test
+- public void warnWhenExpectIsNotRule() {
+- String message = "assertion made on Expect instance, but it's not enabled as a @Rule.";
+- thrown.expectMessage(message);
+- oopsNotARule.that(true).is(true);
+- }
++ @Test public void expectTrue() {
++ EXPECT.that(4).isEqualTo(4);
++ }
++
++ @Ignore @Test public void expectFail() {
++ EXPECT.that("abc").contains("x")
++ .and().contains("y")
++ .and().contains("z");
++ EXPECT.that(Arrays.asList(new String[]{"a", "b", "c"})).containsAnyOf("a", "c");
++ }
+ }
Added: truth/debian/rules
===================================================================
--- truth/debian/rules (rev 0)
+++ truth/debian/rules 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+PACKAGE := libtruth-java
+export JAVA_HOME := /usr/lib/jvm/java-7-openjdk-*
+export CLASSPATH := /usr/share/java/junit4.jar
+
+%:
+ dh $@ --with javahelper
+
+override_dh_auto_build:
+ jh_build --javacopts="-source 1.5 -target 1.5" libtruth-0.7.0.jar src
+
+override_dh_auto_install:
+ mh_installpoms -p$(PACKAGE)
+ mh_installjar -p$(PACKAGE) -l pom.xml libtruth-0.7.0.jar
+
+override_dh_auto_clean:
+ dh_auto_clean
+ mh_clean
+ rm -rf *.jar
Property changes on: truth/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: truth/debian/source/format
===================================================================
--- truth/debian/source/format (rev 0)
+++ truth/debian/source/format 2012-08-29 05:31:52 UTC (rev 271)
@@ -0,0 +1 @@
+3.0 (quilt)
More information about the pkg-eucalyptus-commits
mailing list