2008-08-25 13:35:12 +02:00
|
|
|
/*
|
2012-06-04 22:31:44 +02:00
|
|
|
* Copyright 2012 The Netty Project
|
2008-08-25 13:35:12 +02:00
|
|
|
*
|
2011-12-09 06:18:34 +01:00
|
|
|
* The Netty Project licenses this file to you 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:
|
2008-08-25 13:35:12 +02:00
|
|
|
*
|
2012-06-04 22:31:44 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2008-08-25 13:35:12 +02:00
|
|
|
*
|
2009-08-28 09:15:49 +02:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
2011-12-09 06:18:34 +01:00
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
2009-08-28 09:15:49 +02:00
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2008-08-25 13:35:12 +02:00
|
|
|
*/
|
2011-12-09 04:38:59 +01:00
|
|
|
package io.netty.channel;
|
2008-08-25 13:35:12 +02:00
|
|
|
|
2013-03-05 21:41:19 +01:00
|
|
|
import org.junit.Test;
|
2017-01-09 22:04:18 +01:00
|
|
|
import org.mockito.Mockito;
|
2013-03-05 21:41:19 +01:00
|
|
|
|
2008-08-25 13:35:12 +02:00
|
|
|
import static org.junit.Assert.*;
|
|
|
|
|
|
|
|
public class SucceededChannelFutureTest {
|
|
|
|
@Test
|
|
|
|
public void testConstantProperties() {
|
2017-01-09 22:04:18 +01:00
|
|
|
Channel channel = Mockito.mock(Channel.class);
|
2013-03-05 21:41:19 +01:00
|
|
|
SucceededChannelFuture future = new SucceededChannelFuture(channel, null);
|
2008-08-25 13:35:12 +02:00
|
|
|
|
|
|
|
assertTrue(future.isSuccess());
|
2012-05-01 10:19:41 +02:00
|
|
|
assertNull(future.cause());
|
2008-08-25 13:35:12 +02:00
|
|
|
}
|
|
|
|
}
|