Skip to content

=tck,api #333 Add license headers to TCK and API #344

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

Merged
merged 2 commits into from
Mar 14, 2017
Merged
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
11 changes: 11 additions & 0 deletions api/src/main/java/org/reactivestreams/Processor.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams;

/**
Expand Down
11 changes: 11 additions & 0 deletions api/src/main/java/org/reactivestreams/Publisher.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams;

/**
Expand Down
11 changes: 11 additions & 0 deletions api/src/main/java/org/reactivestreams/Subscriber.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams;

/**
Expand Down
11 changes: 11 additions & 0 deletions api/src/main/java/org/reactivestreams/Subscription.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.Processor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.Publisher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.Publisher;
Expand Down Expand Up @@ -521,4 +532,4 @@ public T nextT() throws InterruptedException {
public void notVerified() {
throw new SkipException("Not verified using this TCK.");
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.Publisher;
Expand Down
11 changes: 11 additions & 0 deletions tck/src/main/java/org/reactivestreams/tck/TestEnvironment.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.Publisher;
Expand Down
11 changes: 11 additions & 0 deletions tck/src/main/java/org/reactivestreams/tck/WithHelperPublisher.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.Publisher;
Expand Down
13 changes: 12 additions & 1 deletion tck/src/main/java/org/reactivestreams/tck/support/Function.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

public interface Function<In, Out> {
public Out apply(In in) throws Throwable;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

import java.util.Collections;
Expand Down Expand Up @@ -30,4 +41,4 @@ public HelperPublisher(final int from, final int to, final Function<Integer, T>
}
}, executor);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

import org.reactivestreams.example.unicast.AsyncIterablePublisher;
Expand Down Expand Up @@ -27,4 +38,4 @@ public InfiniteHelperPublisher(final Function<Integer, T> create, final Executor
}
}, executor);
}
}
}
11 changes: 11 additions & 0 deletions tck/src/main/java/org/reactivestreams/tck/support/NonFatal.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;


Expand Down
11 changes: 11 additions & 0 deletions tck/src/main/java/org/reactivestreams/tck/support/Optional.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

import java.util.NoSuchElementException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

/**
Expand Down Expand Up @@ -30,4 +41,4 @@ public interface SubscriberBlackboxVerificationRules {
void untested_spec314_blackbox_cancelMayCauseThePublisherToShutdownIfNoOtherSubscriptionExists() throws Exception;
void untested_spec315_blackbox_cancelMustNotThrowExceptionAndMustSignalOnError() throws Exception;
void untested_spec316_blackbox_requestMustNotThrowExceptionAndMustOnErrorTheSubscriber() throws Exception;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

public final class SubscriberBufferOverflowException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

/**
Expand Down Expand Up @@ -32,4 +43,4 @@ public interface SubscriberWhiteboxVerificationRules {
void untested_spec314_cancelMayCauseThePublisherToShutdownIfNoOtherSubscriptionExists() throws Exception;
void untested_spec315_cancelMustNotThrowExceptionAndMustSignalOnError() throws Exception;
void untested_spec316_requestMustNotThrowExceptionAndMustOnErrorTheSubscriber() throws Exception;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck.support;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.reactivestreams.example.unicast.AsyncIterablePublisher;
Expand Down Expand Up @@ -39,4 +50,4 @@ public Publisher<Integer> createFailedPublisher() {
public long maxElementsFromPublisher() {
return 0;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/************************************************************************
* Licensed under Public Domain (CC0) *
* *
* To the extent possible under law, the person who associated CC0 with *
* this code has waived all copyright and related or neighboring *
* rights to this code. *
* *
* You should have received a copy of the CC0 legalcode along with this *
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*
************************************************************************/

package org.reactivestreams.tck;

import org.testng.annotations.Test;
Expand Down
Loading