forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionTests.java
More file actions
30 lines (22 loc) · 876 Bytes
/
Copy pathOptionTests.java
File metadata and controls
30 lines (22 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.microsoft.graph.options;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class OptionTests {
@Test
public void testOption() {
FunctionOption functionOption = new FunctionOption("f1","fv1");
assertEquals("f1",functionOption.getName());
assertEquals("fv1",functionOption.getValue());
HeaderOption headerOption = new HeaderOption("h1","hv1");
assertEquals("h1",headerOption.getName());
assertEquals("hv1",headerOption.getValue());
QueryOption queryOption = new QueryOption("q1","qv1");
assertEquals("q1",queryOption.getName());
assertEquals("qv1",queryOption.getValue());
Option option = new Option("o1","ov1");
assertEquals("o1",option.getName());
assertEquals("ov1",option.getValue());
}
}