Lines Matching refs:BodySubscribers

39 import java.net.http.HttpResponse.BodySubscribers;
139 assertThrows(NPE, () -> BodySubscribers.ofByteArrayConsumer(null)); in subscriberAPIExceptions()
140 assertThrows(NPE, () -> BodySubscribers.ofFile(null)); in subscriberAPIExceptions()
141 assertThrows(NPE, () -> BodySubscribers.ofFile(null, CREATE, WRITE)); in subscriberAPIExceptions()
142 assertThrows(NPE, () -> BodySubscribers.ofFile(path, (OpenOption[])null)); in subscriberAPIExceptions()
143 assertThrows(NPE, () -> BodySubscribers.ofFile(path, new OpenOption[] {null})); in subscriberAPIExceptions()
144 assertThrows(NPE, () -> BodySubscribers.ofFile(path, new OpenOption[] {CREATE, null})); in subscriberAPIExceptions()
145 assertThrows(NPE, () -> BodySubscribers.ofFile(path, new OpenOption[] {null, CREATE})); in subscriberAPIExceptions()
146 assertThrows(NPE, () -> BodySubscribers.ofFile(null, (OpenOption[])null)); in subscriberAPIExceptions()
147 assertThrows(NPE, () -> BodySubscribers.ofString(null)); in subscriberAPIExceptions()
148 assertThrows(NPE, () -> BodySubscribers.buffering(null, 1)); in subscriberAPIExceptions()
149 assertThrows(IAE, () -> BodySubscribers.buffering(new NoOpSubscriber(), 0)); in subscriberAPIExceptions()
150 assertThrows(IAE, () -> BodySubscribers.buffering(new NoOpSubscriber(), -1)); in subscriberAPIExceptions()
151 assertThrows(IAE, () -> BodySubscribers.buffering(new NoOpSubscriber(), Integer.MIN_VALUE)); in subscriberAPIExceptions()
152 assertThrows(NPE, () -> BodySubscribers.mapping(null, Function.identity())); in subscriberAPIExceptions()
153 assertThrows(NPE, () -> BodySubscribers.mapping(BodySubscribers.ofByteArray(), null)); in subscriberAPIExceptions()
154 assertThrows(NPE, () -> BodySubscribers.mapping(null, null)); in subscriberAPIExceptions()
157 assertThrows(IAE, () -> BodySubscribers.ofFile(path, READ)); in subscriberAPIExceptions()
158 assertThrows(IAE, () -> BodySubscribers.ofFile(path, DELETE_ON_CLOSE)); in subscriberAPIExceptions()
159 assertThrows(IAE, () -> BodySubscribers.ofFile(path, READ, DELETE_ON_CLOSE)); in subscriberAPIExceptions()