Skip to content

Commit d77d438

Browse files
authored
Merge pull request #113 from sravyasri/develop
Adding unit tests for PlatFormResponse
2 parents b7e1ac6 + 97860da commit d77d438

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017 Intuit
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*******************************************************************************/
16+
package com.intuit.oauth2.data;
17+
18+
import org.testng.annotations.Test;
19+
import static org.testng.Assert.assertEquals;
20+
21+
22+
public class PlatFormResponseTest {
23+
@Test
24+
public void testGetErrorCode()
25+
{
26+
PlatformResponse resp = new PlatformResponse();
27+
resp.setErrorCode("200");
28+
assertEquals(resp.getErrorCode(),"200");
29+
}
30+
31+
@Test
32+
public void testGetErrorMesssage()
33+
{
34+
PlatformResponse resp = new PlatformResponse();
35+
resp.setErrorMessage("Error Message");
36+
assertEquals(resp.getErrorMessage(),"Error Message");
37+
}
38+
39+
@Test
40+
public void testGetStatus()
41+
{
42+
PlatformResponse resp = new PlatformResponse();
43+
resp.setStatus("Status");
44+
assertEquals(resp.getStatus(),"Status");
45+
}
46+
47+
48+
}

0 commit comments

Comments
 (0)