[libtruth-java] 01/03: Checked in libtruth for guava gwt bindings

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Nov 9 23:56:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libtruth-java.

commit 03797798ce18b008eaa4a66a409969d0928a7f2d
Author: Brian Thomason <brian.thomason at eucalyptus.com>
Date:   Wed Aug 29 05:31:52 2012 +0000

    Checked in libtruth for guava gwt bindings
---
 debian/changelog                         |  5 ++
 debian/compat                            |  1 +
 debian/control                           | 16 +++++++
 debian/copyright                         | 41 +++++++++++++++++
 debian/docs                              |  1 +
 debian/patches/series                    |  1 +
 debian/patches/use-old-expect-test.patch | 78 ++++++++++++++++++++++++++++++++
 debian/rules                             | 20 ++++++++
 debian/source/format                     |  1 +
 9 files changed, 164 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8f74549
--- /dev/null
+++ b/debian/changelog
@@ -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
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8e9fddd
--- /dev/null
+++ b/debian/control
@@ -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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..571d286
--- /dev/null
+++ b/debian/copyright
@@ -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".
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a1c532b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-old-expect-test.patch
diff --git a/debian/patches/use-old-expect-test.patch b/debian/patches/use-old-expect-test.patch
new file mode 100644
index 0000000..d0e5b8a
--- /dev/null
+++ b/debian/patches/use-old-expect-test.patch
@@ -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");
++  }
+ }
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f5cbf4d
--- /dev/null
+++ b/debian/rules
@@ -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
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libtruth-java.git



More information about the pkg-java-commits mailing list