| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.notifications; |
| 6 |
| 7 import static org.hamcrest.MatcherAssert.assertThat; |
| 8 import static org.hamcrest.Matchers.everyItem; |
| 9 import static org.hamcrest.Matchers.isIn; |
| 10 import static org.hamcrest.Matchers.not; |
| 11 |
| 12 import org.junit.Test; |
| 13 import org.junit.runner.RunWith; |
| 14 import org.junit.runners.BlockJUnit4ClassRunner; |
| 15 |
| 16 /** |
| 17 * Java unit tests for ChannelDefinitions. |
| 18 */ |
| 19 @RunWith(BlockJUnit4ClassRunner.class) |
| 20 public class ChannelDefinitionsTest { |
| 21 @Test |
| 22 public void testNoOverlapBetweenStartupAndLegacyChannelIds() throws Exceptio
n { |
| 23 ChannelDefinitions channelDefinitions = new ChannelDefinitions(); |
| 24 assertThat(channelDefinitions.getStartupChannelIds(), |
| 25 everyItem(not(isIn(channelDefinitions.getLegacyChannelIds())))); |
| 26 } |
| 27 } |
| OLD | NEW |