File tree 2 files changed +47
-0
lines changed
src/test/java/com/ning/http/client/cookiejar 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .ning .http .client .cookiejar ;
2
+
3
+ import static org .testng .Assert .assertNotNull ;
4
+
5
+ import org .testng .annotations .AfterSuite ;
6
+ import org .testng .annotations .BeforeSuite ;
7
+ import org .testng .annotations .Test ;
8
+
9
+ abstract class AbstractCookieJarTestCase
10
+ {
11
+
12
+ private CookieJar cookieJar ;
13
+
14
+ @ BeforeSuite
15
+ public final void setUp ()
16
+ {
17
+ cookieJar = createCookieJar ();
18
+ }
19
+
20
+ protected abstract CookieJar createCookieJar ();
21
+
22
+ @ AfterSuite
23
+ public final void tearDown ()
24
+ {
25
+ cookieJar = null ;
26
+ }
27
+
28
+ @ Test
29
+ public void myCharmingCookieJarTest ()
30
+ {
31
+ assertNotNull ( cookieJar );
32
+ }
33
+
34
+ }
Original file line number Diff line number Diff line change
1
+ package com .ning .http .client .cookiejar ;
2
+
3
+ public final class InMemoryCookieJarTestcase
4
+ extends AbstractCookieJarTestCase
5
+ {
6
+
7
+ @ Override
8
+ protected CookieJar createCookieJar ()
9
+ {
10
+ return new InMemoryCookieJar ();
11
+ }
12
+
13
+ }
You can’t perform that action at this time.
0 commit comments