svn commit: r1002691 - in /websites/staging/commons/trunk/content: ./ downloads/ gsoc/ gsoc/2010/ releases/
Author: buildbot Date: Mon Dec 12 22:53:59 2016 New Revision: 1002691 Log: Staging update by buildbot for commons Modified: websites/staging/commons/trunk/content/ (props changed) websites/staging/commons/trunk/content/bugs.html websites/staging/commons/trunk/content/building.html websites/staging/commons/trunk/content/charter.html websites/staging/commons/trunk/content/commons-parent-pom.html websites/staging/commons/trunk/content/components.html websites/staging/commons/trunk/content/dormant.html websites/staging/commons/trunk/content/downloads/index.html websites/staging/commons/trunk/content/gsoc/2010/index.html websites/staging/commons/trunk/content/gsoc/index.html websites/staging/commons/trunk/content/index.html websites/staging/commons/trunk/content/mail-lists.html websites/staging/commons/trunk/content/new-sandbox-component.html websites/staging/commons/trunk/content/oldcharter.html websites/staging/commons/trunk/content/patches.html websites/staging/commons/trunk/content/project-info.html websites/staging/commons/trunk/content/releases/index.html websites/staging/commons/trunk/content/releases/moving-to-dormant.html websites/staging/commons/trunk/content/releases/prepare.html websites/staging/commons/trunk/content/releases/publish-site.html websites/staging/commons/trunk/content/releases/release.html websites/staging/commons/trunk/content/releases/versioning.html websites/staging/commons/trunk/content/sandbox.html websites/staging/commons/trunk/content/security.html websites/staging/commons/trunk/content/site-publish.html websites/staging/commons/trunk/content/svninfo.html websites/staging/commons/trunk/content/team-list.html websites/staging/commons/trunk/content/volunteering.html Propchange: websites/staging/commons/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Dec 12 22:53:59 2016 @@ -1 +1 @@ -1770214 +1773898 Modified: websites/staging/commons/trunk/content/bugs.html == --- websites/staging/commons/trunk/content/bugs.html (original) +++ websites/staging/commons/trunk/content/bugs.html Mon Dec 12 22:53:59 2016 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ - + Apache Commons On Reporting Bugs @@ -36,7 +36,7 @@ http://commons.apache.org/;>Apache Commons -Last Published: 05 November 2016 +Last Published: 12 December 2016 | Version: 18 Modified: websites/staging/commons/trunk/content/building.html == --- websites/staging/commons/trunk/content/building.html (original) +++ websites/staging/commons/trunk/content/building.html Mon Dec 12 22:53:59 2016 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ - + Apache Commons Building Apache Commons Components @@ -36,7 +36,7 @@ http://commons.apache.org/;>Apache Commons -Last Published: 05 November 2016 +Last Published: 12 December 2016 | Version: 18 Modified: websites/staging/commons/trunk/content/charter.html == --- websites/staging/commons/trunk/content/charter.html (original) +++ websites/staging/commons/trunk/content/charter.html Mon Dec 12 22:53:59 2016 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ - + Apache Commons Charter @@ -36,7 +36,7 @@ http://commons.apache.org/;>Apache Commons -Last Published: 05 November 2016 +Last Published: 12 December 2016 | Version: 18 Modified: websites/staging/commons/trunk/content/commons-parent-pom.html == --- websites/staging/commons/trunk/content/commons-parent-pom.html (original) +++ websites/staging/commons/trunk/content/commons-parent-pom.html Mon Dec 12 22:53:59 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Commons Apache Commons Parent pom.xml @@ -35,7 +35,7 @@ http://commons.apache.org/;>Apache Commons
svn commit: r1002670 - in /websites/production/commons/content/proper/commons-rng: commons-rng-client-api/javadocs/ commons-rng-core/javadocs/ commons-rng-examples/javadocs/ commons-rng-jmh/javadocs/
Author: erans Date: Mon Dec 12 17:31:59 2016 New Revision: 1002670 Log: Directories for long-term, per version, javadocs. Added: websites/production/commons/content/proper/commons-rng/commons-rng-client-api/javadocs/ websites/production/commons/content/proper/commons-rng/commons-rng-core/javadocs/ websites/production/commons/content/proper/commons-rng/commons-rng-examples/javadocs/ websites/production/commons/content/proper/commons-rng/commons-rng-jmh/javadocs/ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/javadocs/ websites/production/commons/content/proper/commons-rng/commons-rng-simple/javadocs/
svn commit: r1002658 [19/35] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/
Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/jacoco.xml == --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/jacoco.xml (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/jacoco.xml Mon Dec 12 16:27:09 2016 @@ -1 +1 @@ -missed="0" covered="2"/>covered="1"/>type="INSTRUCTION" missed="3" covered="122"/>missed="0" covered="2"/>type="COMPLEXITY" missed="1" covered="4"/>covered="3"/>name="org/apache/commons/rng/sampling/distribution/BoxMullerLogNormalSampler"> name="init" >desc="(Lorg/apache/commons/rng/UniformRandomProvider;DD)V" line="43">type="INSTRUCTION" missed="0" covered="18"/>covered="5"/>type="METHOD" missed="0" covered="1"/>desc="()D" line="52">covered="11"/>mb="0" cb="0"/>type="INSTRUCTION" missed="17" covered="385"/>missed="4" covered="28"/>covered="72"/>type="METHOD" missed="0" covered="5"/>covered="1"/>mi="0" ci="63" mb="0" cb="0"/>cb="0"/>ci="3" mb="0" cb="0"/>nr="116" mi="0" ci="16" mb="0" cb="0"/>cb="0"/>ci="11" mb="0" cb="0"/>type="INSTRUCTION" missed="3" covered="122"/> \ No newline at end of file [... 3 lines stripped ...] Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/AhrensDieterMarsagliaTsangGammaSampler.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/AhrensDieterMarsagliaTsangGammaSampler.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/AhrensDieterMarsagliaTsangGammaSampler.html Mon Dec 12 16:27:09 2016 @@ -1 +1 @@ -http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>http://www.w3.org/1999/xhtml; lang="en">AhrensDieterMarsagliaTsangGammaSamplerSessionsApache Commons RNG Sampling org.apache.commons.rng.sampling.distribution AhrensDieterMarsagliaTsangGammaSamplerAhrensDieterMarsagliaTsangGam maSamplerElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsTotal0 of 190100%0 of 14< /td>100%01003403sample()100%100%0802801AhrensDieterMarsagliaTsangGammaSampler(UniformRandomProvider, double, double) 100%n/a010501toString()100%n/a010101Created with http://www.eclemma.org/jacoco;>JaCoCo 0.7.5.201505241946 \ No newline at end of file +http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>http://www.w3.org/1999/xhtml; lang="en">AhrensDieterMarsagliaTsangGammaSamplerSessionsApache Commons RNG Sampling org.apache.commons.rng.sampling.distribution AhrensDieterMarsagliaTsangGammaSamplerAhrensDieterMarsagliaTsangGam maSamplerElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsTotal0 of 190100%0 of 14< /td>100%01003403sample()100%100%0802801AhrensDieterMarsagliaTsangGammaSampler(UniformRandomProvider, double, double) 100%n/a010501toString()100%n/a010101Created with http://www.eclemma.org/jacoco;>JaCoCo 0.7.5.201505241946 \ No newline at end of file Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/AhrensDieterMarsagliaTsangGammaSampler.java.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/AhrensDieterMarsagliaTsangGammaSampler.java.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/AhrensDieterMarsagliaTsangGammaSampler.java.html Mon Dec 12 16:27:09 2016 @@ -19,7 +19,6 @@ package org.apache.commons.rng.sampling. import org.apache.commons.rng.UniformRandomProvider; /** - * p * Sampling from the a href=http://mathworld.wolfram.com/GammaDistribution.htmlGamma distribution/a. * ul * li @@ -39,7 +38,6 @@ import org.apache.commons.rng.UniformRan * /blockquote * /li * /ul - * /p */ public class AhrensDieterMarsagliaTsangGammaSampler extends SamplerBase @@ -59,47 +57,47 @@ public class AhrensDieterMarsagliaTsangG public AhrensDieterMarsagliaTsangGammaSampler(UniformRandomProvider rng, double alpha, double theta) { -super(rng); -this.alpha = alpha; -this.theta = theta; -gaussian = new BoxMullerGaussianSampler(rng, 0, 1); -} +super(rng); +this.alpha = alpha; +this.theta = theta; +gaussian = new BoxMullerGaussianSampler(rng, 0, 1); +} /** {@inheritDoc} */ @Override public double sample() { -if
svn commit: r1002658 [31/35] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/
Added: websites/production/commons/content/proper/commons-rng/xref-test/org/apache/commons/rng/core/ProvidersList.html == --- websites/production/commons/content/proper/commons-rng/xref-test/org/apache/commons/rng/core/ProvidersList.html (added) +++ websites/production/commons/content/proper/commons-rng/xref-test/org/apache/commons/rng/core/ProvidersList.html Mon Dec 12 16:27:09 2016 @@ -0,0 +1,152 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +ProvidersList xref + + + +View Javadoc +1 /* +2* Licensed to the Apache Software Foundation (ASF) under one or more +3* contributor license agreements. See the NOTICE file distributed with +4* this work for additional information regarding copyright ownership. +5* The ASF licenses this file to You under the Apache License, Version 2.0 +6* (the "License"); you may not use this file except in compliance with +7* the License. You may obtain a copy of the License at +8* +9* http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +10 * +11 * Unless required by applicable law or agreed to in writing, software +12 * distributed under the License is distributed on an "AS IS" BASIS, +13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +14 * See the License for the specific language governing permissions and +15 * limitations under the License. +16 */ +17 package org.apache.commons.rng.core; +18 +19 import java.util.Arrays; +20 import java.util.List; +21 import java.util.ArrayList; +22 import java.util.Collections; +23 +24 import org.apache.commons.rng.core.source32.JDKRandom; +25 import org.apache.commons.rng.core.source32.Well512a; +26 import org.apache.commons.rng.core.source32.Well1024a; +27 import org.apache.commons.rng.core.source32.Well19937a; +28 import org.apache.commons.rng.core.source32.Well19937c; +29 import org.apache.commons.rng.core.source32.Well44497a; +30 import org.apache.commons.rng.core.source32.Well44497b; +31 import org.apache.commons.rng.core.source32.ISAACRandom; +32 import org.apache.commons.rng.core.source32.MersenneTwister; +33 import org.apache.commons.rng.core.source32.MultiplyWithCarry256; +34 import org.apache.commons.rng.core.source32.KISSRandom; +35 import org.apache.commons.rng.core.source64.SplitMix64; +36 import org.apache.commons.rng.core.source64.XorShift1024Star; +37 import org.apache.commons.rng.core.source64.TwoCmres; +38 import org.apache.commons.rng.core.source64.MersenneTwister64; +39 import org.apache.commons.rng.RestorableUniformRandomProvider; +40 +41 /** +42 * The purpose of this class is to provide the list of all generators +43 * implemented in the library. +44 * The list must be updated with each new RNG implementation. +45 * +46 * @see #list() +47 * @see #list32() +48 * @see #list64() +49 */ +50 public class ProvidersList { +51 /** List of all RNGs implemented in the library. */ +52 private static final ListRestorableUniformRandomProvider[] LIST = +53 new ArrayListRestorableUniformRandomProvider[](); +54 /** List of 32-bits based RNGs. */ +55 private static final ListRestorableUniformRandomProvider[] LIST32 = +56 new ArrayListRestorableUniformRandomProvider[](); +57 /** List of 64-bits based RNGs. */ +58 private static final ListRestorableUniformRandomProvider[] LIST64 = +59 new ArrayListRestorableUniformRandomProvider[](); +60 +61 static { +62 try { +63 // "int"-based RNGs. +64 add(LIST32, new JDKRandom(-1223335L)); +65 add(LIST32, new MersenneTwister(new int[] { -123, -234, -345 })); +66 add(LIST32, new Well512a(new int[] { -23, -34, -45 })); +67 add(LIST32, new Well1024a(new int[] { -1234, -2345, -3456 })); +68 add(LIST32, new Well19937a(new int[] { -2123, -3234, -4345 })); +69 add(LIST32, new Well19937c(new int[] { -123, -234, -345, -456 })); +70 add(LIST32, new Well44497a(new int[] { -12345, -23456, -34567 })); +71 add(LIST32, new Well44497b(new int[] { 123, 234, 345 })); +72 add(LIST32, new ISAACRandom(new int[] { 123, -234, 345, -456 })); +73 add(LIST32, new MultiplyWithCarry256(new int[] { 12, -1234, -3456, 45679 })); +74 add(LIST32, new KISSRandom(new int[] { 12, 1234, 23456, 345678 })); +75 // ... add more here. +76 +77 // "long"-based RNGs. +78 add(LIST64, new SplitMix64(-98877766544333L)); +79 add(LIST64, new XorShift1024Star(new long[] { 123456L, 234567L, -345678L })); +80 add(LIST64, new TwoCmres(55443322)); +81
svn commit: r1002658 [33/35] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/
Modified: websites/production/commons/content/proper/commons-rng/xref/org/apache/commons/rng/examples/stress/RandomStressTester.html == --- websites/production/commons/content/proper/commons-rng/xref/org/apache/commons/rng/examples/stress/RandomStressTester.html (original) +++ websites/production/commons/content/proper/commons-rng/xref/org/apache/commons/rng/examples/stress/RandomStressTester.html Mon Dec 12 16:27:09 2016 @@ -45,261 +45,259 @@ 37 * program that reads {@code int} values from its standard input and 38 * writes an analysis report to standard output. 39 * -40 * p -41 * The a href="http://www.phy.duke.edu/~rgb/General/dieharder.php; target="alexandria_uri">http://www.phy.duke.edu/~rgb/General/dieharder.php" -42 * "dieharder"/a test suite is such a software. -43 * br -44 * Example of command line, assuming that "examples.jar" specifies this -45 * class as the "main" class (see {@link #main(String[]) main} method): -46 * precode -47 * $ java -jar examples.jar \ -48 * report/dh_ \ -49 * 4 \ -50 * org.apache.commons.rng.examples.stress.GeneratorsList \ -51 * /usr/bin/dieharder -a -g 200 -Y 1 -k 2 -52 * /code/pre -53 * /p -54 */ -55 public class RandomStressTester { -56 /** Comment prefix. */ -57 private static final String C = "# "; -58 /** New line. */ -59 private static final String N = "\n"; -60 /** Command line. */ -61 private final ListString cmdLine; -62 /** Output prefix. */ -63 private final String fileOutputPrefix; -64 -65 /** -66 * Creates the application. -67 * -68 * @param cmd Command line. -69 * @param outputPrefix Output prefix for file reports. -70 */ -71 private RandomStressTester(ListString cmd, -72 String outputPrefix) { -73 final File exec = new File(cmd.get(0)); -74 if (!exec.exists() || -75 !exec.canExecute()) { -76 throw new RuntimeException("Program is not executable: " + exec); -77 } -78 -79 cmdLine = new ArrayListString(cmd); -80 fileOutputPrefix = outputPrefix; -81 -82 final File reportDir = new File(fileOutputPrefix).getParentFile(); -83 if (!reportDir.exists() || -84 !reportDir.isDirectory() || -85 !reportDir.canWrite()) { -86 throw new RuntimeException("Invalid output directory: " + reportDir); -87 } -88 } -89 -90 /** -91 * Program's entry point. -92 * -93 * @param args Application's arguments. -94 * The order is as follows: -95 * ol -96 * liOutput prefix: Filename prefix where the output of the analysis will -97 * written to. The appended suffix is the index of the instance within the -98 * list of generators to be tested./li -99 * liNumber of threads to use concurrently: One thread will process one of -100 *the generators to be tested./li -101 * liName of a class that implements {@code IterableUniformRandomProvider} -102 * (and defines a default constructor): Each generator of the list will be -103 * tested by one instance of the analyzer program/li -104 * liPath to the executable: this is the analyzer software that reads 32-bits -105 * integers from stdin./li -106 * liAll remaining arguments are passed to the executable./li -107 * /ol -108 */ -109 public static void main(String[] args) { -110 final String output = args[0]; -111 final int numThreads = Integer.valueOf(args[1]); +40 * The a href="http://www.phy.duke.edu/~rgb/General/dieharder.php; target="alexandria_uri">http://www.phy.duke.edu/~rgb/General/dieharder.php" +41 * "dieharder"/a test suite is such a software. +42 * +43 * Example of command line, assuming that "examples.jar" specifies this +44 * class as the "main" class (see {@link #main(String[]) main} method): +45 * precode +46 * $ java -jar examples.jar \ +47 *report/dh_ \ +48 *4 \ +49 * org.apache.commons.rng.examples.stress.GeneratorsList \ +50 */usr/bin/dieharder -a -g 200 -Y 1 -k 2 +51 * /code/pre +52 */ +53 public class RandomStressTester { +54 /** Comment prefix. */ +55 private static final String C = "# "; +56 /** New line. */ +57 private static final String N = "\n"; +58 /** Command line. */ +59 private final ListString cmdLine; +60 /** Output prefix. */ +61 private final String fileOutputPrefix; +62 +63 /** +64 * Creates the application. +65 * +66 * @param cmd Command line. +67 * @param outputPrefix Output prefix for file reports. +68 */ +69 private RandomStressTester(ListString cmd, +70 String
svn commit: r1002658 [12/35] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/
Modified: websites/production/commons/content/proper/commons-rng/commons-rng-examples/dependency-convergence.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-examples/dependency-convergence.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-examples/dependency-convergence.html Mon Dec 12 16:27:09 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Commons RNG Examples Reactor Dependency Convergence @@ -40,8 +40,8 @@ http://commons.apache.org/proper/commons-rng/commons-rng-examples/;>Apache Commons RNG Examples -Last Published: 23 November 2016 - | Version: 1.0-SNAPSHOT +Last Published: 12 December 2016 + | Version: 1.0 Modified: websites/production/commons/content/proper/commons-rng/commons-rng-examples/dependency-info.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-examples/dependency-info.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-examples/dependency-info.html Mon Dec 12 16:27:09 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Commons RNG Examples Dependency Information @@ -40,8 +40,8 @@ http://commons.apache.org/proper/commons-rng/commons-rng-examples/;>Apache Commons RNG Examples -Last Published: 23 November 2016 - | Version: 1.0-SNAPSHOT +Last Published: 12 December 2016 + | Version: 1.0 @@ -228,36 +228,36 @@ dependency groupIdorg.apache.commons/groupId artifactIdcommons-rng-examples/artifactId - version1.0-SNAPSHOT/version + version1.0/version /dependency Apache Buildr -'org.apache.commons:commons-rng-examples:jar:1.0-SNAPSHOT' +'org.apache.commons:commons-rng-examples:jar:1.0' Apache Ivy -dependency org=org.apache.commons name=commons-rng-examples rev=1.0-SNAPSHOT +dependency org=org.apache.commons name=commons-rng-examples rev=1.0 artifact name=commons-rng-examples type=jar / /dependency Groovy Grape @Grapes( -@Grab(group='org.apache.commons', module='commons-rng-examples', version='1.0-SNAPSHOT') +@Grab(group='org.apache.commons', module='commons-rng-examples', version='1.0') ) Gradle/Grails -compile 'org.apache.commons:commons-rng-examples:1.0-SNAPSHOT' +compile 'org.apache.commons:commons-rng-examples:1.0' Scala SBT -libraryDependencies += org.apache.commons % commons-rng-examples % 1.0-SNAPSHOT +libraryDependencies += org.apache.commons % commons-rng-examples % 1.0 Leiningen -[org.apache.commons/commons-rng-examples 1.0-SNAPSHOT] +[org.apache.commons/commons-rng-examples 1.0] Modified: websites/production/commons/content/proper/commons-rng/commons-rng-examples/distribution-management.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-examples/distribution-management.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-examples/distribution-management.html Mon Dec 12 16:27:09 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Commons RNG Examples Project Distribution Management @@ -40,8 +40,8 @@ http://commons.apache.org/proper/commons-rng/commons-rng-examples/;>Apache Commons RNG Examples -Last Published: 23 November 2016 - | Version: 1.0-SNAPSHOT +Last Published: 12 December 2016 + | Version: 1.0 Modified: websites/production/commons/content/proper/commons-rng/commons-rng-examples/findbugs.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-examples/findbugs.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-examples/findbugs.html Mon Dec 12 16:27:09 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Commons RNG Examples FindBugs Bug Detector Report @@ -40,8 +40,8 @@ http://commons.apache.org/proper/commons-rng/commons-rng-examples/;>Apache Commons RNG Examples -Last Published: 23 November 2016 - | Version: 1.0-SNAPSHOT +Last Published: 12
svn commit: r1002658 [9/35] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/r
Added: websites/production/commons/content/proper/commons-rng/commons-rng-core/xref-test/org/apache/commons/rng/core/ProvidersCommonParametricTest.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-core/xref-test/org/apache/commons/rng/core/ProvidersCommonParametricTest.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-core/xref-test/org/apache/commons/rng/core/ProvidersCommonParametricTest.html Mon Dec 12 16:27:09 2016 @@ -0,0 +1,628 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +ProvidersCommonParametricTest xref + + + +View Javadoc +1 /* +2* Licensed to the Apache Software Foundation (ASF) under one or more +3* contributor license agreements. See the NOTICE file distributed with +4* this work for additional information regarding copyright ownership. +5* The ASF licenses this file to You under the Apache License, Version 2.0 +6* (the "License"); you may not use this file except in compliance with +7* the License. You may obtain a copy of the License at +8* +9* http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +10 * +11 * Unless required by applicable law or agreed to in writing, software +12 * distributed under the License is distributed on an "AS IS" BASIS, +13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +14 * See the License for the specific language governing permissions and +15 * limitations under the License. +16 */ +17 package org.apache.commons.rng.core; +18 +19 import java.util.Arrays; +20 import java.util.List; +21 import java.util.ArrayList; +22 import java.util.concurrent.Callable; +23 import java.io.IOException; +24 import java.io.ObjectOutputStream; +25 import java.io.ObjectInputStream; +26 import java.io.ByteArrayOutputStream; +27 import java.io.ByteArrayInputStream; +28 +29 import org.junit.Assert; +30 import org.junit.Test; +31 import org.junit.Assume; +32 import org.junit.Ignore; +33 import org.junit.runner.RunWith; +34 import org.junit.runners.Parameterized; +35 import org.junit.runners.Parameterized.Parameters; +36 +37 import org.apache.commons.rng.UniformRandomProvider; +38 import org.apache.commons.rng.RestorableUniformRandomProvider; +39 import org.apache.commons.rng.RandomProviderState; +40 +41 /** +42 * Tests which all generators must pass. +43 */ +44 @RunWith(value=Parameterized.class) +45 public class ProvidersCommonParametricTest { +46 /** RNG under test. */ +47 private final RestorableUniformRandomProvider generator; +48 +49 /** +50 * Initializes generator instance. +51 * +52 * @param rng RNG to be tested. +53 */ +54 public ProvidersCommonParametricTest(RestorableUniformRandomProvider rng) { +55 generator = rng; +56 } +57 +58 @Parameters(name = "{index}: data={0}") +59 public static IterableRestorableUniformRandomProvider[] getList() { +60 return ProvidersList.list(); +61 } +62 +63 +64 // Precondition tests +65 +66 @Test(expected=IllegalArgumentException.class) +67 public void testPreconditionNextInt1() { +68 generator.nextInt(-1); +69 } +70 +71 @Test(expected=IllegalArgumentException.class) +72 public void testPreconditionNextInt2() { +73 generator.nextInt(0); +74 } +75 +76 @Test(expected=IllegalArgumentException.class) +77 public void testPreconditionNextLong1() { +78 generator.nextLong(-1); +79 } +80 +81 @Test(expected=IllegalArgumentException.class) +82 public void testPreconditionNextLong2() { +83 generator.nextLong(0); +84 } +85 +86 @Test(expected=IndexOutOfBoundsException.class) +87 public void testPreconditionNextBytes1() { +88 final int size = 10; +89 final int num = 1; +90 final byte[] buf = new byte[size]; +91 generator.nextBytes(buf, -1, num); +92 } +93 @Test(expected=IndexOutOfBoundsException.class) +94 public void testPreconditionNextBytes2() { +95 final int size = 10; +96 final byte[] buf = new byte[size]; +97 generator.nextBytes(buf, size, 0); +98 } +99 @Test(expected=IndexOutOfBoundsException.class) +100 public void testPreconditionNextBytes3() { +101 final int size = 10; +102 final int offset = 2; +103 final byte[] buf = new byte[size]; +104 generator.nextBytes(buf, offset, size - offset + 1); +105 } +106 @Test(expected=IndexOutOfBoundsException.class) +107 public void testPreconditionNextBytes4() { +108 final int size = 10; +109 final int offset = 1; +110
svn commit: r1002658 [4/35] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/r
Modified: websites/production/commons/content/proper/commons-rng/commons-rng-core/apidocs/org/apache/commons/rng/core/util/NumberFactory.html == --- websites/production/commons/content/proper/commons-rng/commons-rng-core/apidocs/org/apache/commons/rng/core/util/NumberFactory.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-core/apidocs/org/apache/commons/rng/core/util/NumberFactory.html Mon Dec 12 16:27:09 2016 @@ -4,7 +4,7 @@ -NumberFactory (Apache Commons RNG Core 1.0-SNAPSHOT API) +NumberFactory (Apache Commons RNG Core 1.0 API) @@ -12,7 +12,7 @@ -Uses of Class org.apache.commons.rng.core.util.NumberFactory (Apache Commons RNG Core 1.0-SNAPSHOT API) +Uses of Class org.apache.commons.rng.core.util.NumberFactory (Apache Commons RNG Core 1.0 API)