Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synergy-api-util
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raimbek Egemberdiev
synergy-api-util
Commits
e2b317d8
Commit
e2b317d8
authored
Nov 11, 2016
by
Raimbek Egemberdiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged dev
parent
663bb459
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/main/java/kz/arta/synergy/api/asforms/AsFormService.java
src/main/java/kz/arta/synergy/api/asforms/AsFormService.java
+4
-4
src/test/java/kz/arta/synergy/api/asforms/AsFormServiceTest.java
...t/java/kz/arta/synergy/api/asforms/AsFormServiceTest.java
+5
-5
No files found.
src/main/java/kz/arta/synergy/api/asforms/AsForm
Provider
.java
→
src/main/java/kz/arta/synergy/api/asforms/AsForm
Service
.java
View file @
e2b317d8
...
@@ -21,16 +21,16 @@ import java.util.Set;
...
@@ -21,16 +21,16 @@ import java.util.Set;
* @author raimbek
* @author raimbek
* @since 09.11.2016
* @since 09.11.2016
*/
*/
public
class
AsForm
Provider
{
public
class
AsForm
Service
{
private
RestHttpQuery
restHttpQuery
;
private
RestHttpQuery
restHttpQuery
;
private
AsForm
Provider
(
QueryContext
context
)
{
private
AsForm
Service
(
QueryContext
context
)
{
this
.
restHttpQuery
=
new
RestHttpQuery
(
context
);
this
.
restHttpQuery
=
new
RestHttpQuery
(
context
);
}
}
public
static
AsForm
Provider
newInstance
(
QueryContext
context
)
{
public
static
AsForm
Service
newInstance
(
QueryContext
context
)
{
return
new
AsForm
Provider
(
context
);
return
new
AsForm
Service
(
context
);
}
}
public
List
<
AdvancedSearchResult
>
advancedSearch
(
AdvancedSearchParams
searchParams
)
throws
IOException
{
public
List
<
AdvancedSearchResult
>
advancedSearch
(
AdvancedSearchParams
searchParams
)
throws
IOException
{
...
...
src/test/java/kz/arta/synergy/api/asforms/AsForm
Provider
Test.java
→
src/test/java/kz/arta/synergy/api/asforms/AsForm
Service
Test.java
View file @
e2b317d8
...
@@ -17,7 +17,7 @@ import java.util.List;
...
@@ -17,7 +17,7 @@ import java.util.List;
* @author raimbek
* @author raimbek
* @since 09.11.2016
* @since 09.11.2016
*/
*/
public
class
AsForm
Provider
Test
{
public
class
AsForm
Service
Test
{
String
expectedTextInputValue
=
"value_1"
;
String
expectedTextInputValue
=
"value_1"
;
String
expectedNumericInputValue
=
"value_2"
;
String
expectedNumericInputValue
=
"value_2"
;
...
@@ -33,7 +33,7 @@ public class AsFormProviderTest {
...
@@ -33,7 +33,7 @@ public class AsFormProviderTest {
String
expectedTableInputValueB2
=
"table_input_b2"
;
String
expectedTableInputValueB2
=
"table_input_b2"
;
TestForm
testForm
;
TestForm
testForm
;
AsForm
Provider
asFormProvider
;
AsForm
Service
asFormService
;
@BeforeClass
@BeforeClass
public
void
createAsfWrapper
()
throws
IOException
{
public
void
createAsfWrapper
()
throws
IOException
{
...
@@ -63,8 +63,8 @@ public class AsFormProviderTest {
...
@@ -63,8 +63,8 @@ public class AsFormProviderTest {
@Test
@Test
public
void
testQuery
()
throws
IOException
{
public
void
testQuery
()
throws
IOException
{
asForm
Provider
=
AsFormProvider
.
newInstance
(
new
QueryContext
(
"http://192.168.0.143:8080/Synergy"
,
"NppAdmin"
,
"123456"
));
asForm
Service
=
AsFormService
.
newInstance
(
new
QueryContext
(
"http://192.168.0.143:8080/Synergy"
,
"NppAdmin"
,
"123456"
));
TestForm
fetch
=
asForm
Provider
.
fetch
(
TestForm
.
class
,
"2ae95419-af0e-4017-bad9-ff527591ef02"
);
TestForm
fetch
=
asForm
Service
.
fetch
(
TestForm
.
class
,
"2ae95419-af0e-4017-bad9-ff527591ef02"
);
System
.
out
.
println
();
System
.
out
.
println
();
}
}
...
@@ -109,7 +109,7 @@ public class AsFormProviderTest {
...
@@ -109,7 +109,7 @@ public class AsFormProviderTest {
@Test
@Test
public
void
toAsfData
()
{
public
void
toAsfData
()
{
AsFormWrapper
asFormWrapper
=
asForm
Provider
.
toAsfData
(
testForm
);
AsFormWrapper
asFormWrapper
=
asForm
Service
.
toAsfData
(
testForm
);
AsFormData
textInput
=
asFormWrapper
.
getData
(
"text_input"
);
AsFormData
textInput
=
asFormWrapper
.
getData
(
"text_input"
);
Assert
.
assertEquals
(
textInput
.
getType
(),
ComponentTypes
.
TEXT_BOX
);
Assert
.
assertEquals
(
textInput
.
getType
(),
ComponentTypes
.
TEXT_BOX
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment