-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from jeffmaury/OSJC-274
Merged by openshift-bot
- Loading branch information
Showing
3 changed files
with
73 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/test/java/com/openshift/internal/restclient/model/BuildConfigTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 Red Hat, Inc. | ||
* Distributed under license by Red Hat, Inc. All rights reserved. | ||
* This program is made available under the terms of the | ||
* Eclipse Public License v1.0 which accompanies this distribution, | ||
* and is available at http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
******************************************************************************/ | ||
package com.openshift.internal.restclient.model; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.mockito.Mockito.mock; | ||
|
||
import java.util.HashMap; | ||
|
||
import org.jboss.dmr.ModelNode; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import com.openshift.restclient.IClient; | ||
import com.openshift.restclient.model.IBuildConfig; | ||
|
||
/** | ||
* Tests unrelated to the underlying model structure and | ||
* should api version independent | ||
* @author Jeff Maury | ||
* | ||
*/ | ||
public class BuildConfigTest { | ||
|
||
private IBuildConfig config; | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
config = new BuildConfig(new ModelNode(), mock(IClient.class), new HashMap<>()); | ||
} | ||
|
||
@Test | ||
public void testBuildTriggersShouldReturn() { | ||
assertEquals(0, config.getBuildTriggers().size()); | ||
} | ||
|
||
} |