3bebaa4afe485e80c2860b4c98bf4e5a20b6ad10
[appc.git] /
1 package org.onap.appc.adapter.netconf.internal;
2
3 import org.junit.Assert;
4 import org.junit.Before;
5 import org.junit.Test;
6 import org.onap.appc.adapter.netconf.ConnectionDetails;
7 import org.onap.appc.adapter.netconf.NetconfConnectionDetails;
8 import org.onap.ccsdk.sli.core.dblib.DbLibService;
9
10 import javax.sql.RowSet;
11 import javax.sql.RowSetEvent;
12 import javax.sql.RowSetListener;
13 import javax.sql.RowSetMetaData;
14 import javax.sql.rowset.CachedRowSet;
15 import javax.sql.rowset.RowSetWarning;
16 import javax.sql.rowset.spi.SyncProvider;
17 import javax.sql.rowset.spi.SyncProviderException;
18 import java.io.IOException;
19 import java.io.InputStream;
20 import java.io.PrintWriter;
21 import java.io.Reader;
22 import java.math.BigDecimal;
23 import java.net.URL;
24 import java.sql.Array;
25 import java.sql.Blob;
26 import java.sql.Clob;
27 import java.sql.Connection;
28 import java.sql.Date;
29 import java.sql.NClob;
30 import java.sql.Ref;
31 import java.sql.ResultSet;
32 import java.sql.ResultSetMetaData;
33 import java.sql.RowId;
34 import java.sql.SQLException;
35 import java.sql.SQLFeatureNotSupportedException;
36 import java.sql.SQLWarning;
37 import java.sql.SQLXML;
38 import java.sql.Savepoint;
39 import java.sql.Statement;
40 import java.sql.Time;
41 import java.sql.Timestamp;
42 import java.util.ArrayList;
43 import java.util.Calendar;
44 import java.util.Collection;
45 import java.util.Map;
46 import java.util.logging.Logger;
47
48 public class TestNetconfDataAccessServiceImpl {
49     private String schema;
50     private DbLibService dbLibServiceMocked;
51     NetconfDataAccessServiceImpl netconfDataAccessService;
52
53     @Before
54     public void SetUp() {
55         schema = "test-netconf-adaptor";
56         dbLibServiceMocked = new DbLibService() {
57             @Override
58             public CachedRowSet getData(String s, ArrayList<String> arrayList, String s1) throws SQLException {
59                 CachedRowSet cachedRowSetMocked = new CachedRowSet() {
60                     @Override
61                     public void populate(ResultSet data) throws SQLException {
62
63                     }
64
65                     @Override
66                     public void execute(Connection conn) throws SQLException {
67
68                     }
69
70                     @Override
71                     public void acceptChanges() throws SyncProviderException {
72
73                     }
74
75                     @Override
76                     public void acceptChanges(Connection con) throws SyncProviderException {
77
78                     }
79
80                     @Override
81                     public void restoreOriginal() throws SQLException {
82
83                     }
84
85                     @Override
86                     public void release() throws SQLException {
87
88                     }
89
90                     @Override
91                     public void undoDelete() throws SQLException {
92
93                     }
94
95                     @Override
96                     public void undoInsert() throws SQLException {
97
98                     }
99
100                     @Override
101                     public void undoUpdate() throws SQLException {
102
103                     }
104
105                     @Override
106                     public boolean columnUpdated(int idx) throws SQLException {
107                         return false;
108                     }
109
110                     @Override
111                     public boolean columnUpdated(String columnName) throws SQLException {
112                         return false;
113                     }
114
115                     @Override
116                     public Collection<?> toCollection() throws SQLException {
117                         return null;
118                     }
119
120                     @Override
121                     public Collection<?> toCollection(int column) throws SQLException {
122                         return null;
123                     }
124
125                     @Override
126                     public Collection<?> toCollection(String column) throws SQLException {
127                         return null;
128                     }
129
130                     @Override
131                     public SyncProvider getSyncProvider() throws SQLException {
132                         return null;
133                     }
134
135                     @Override
136                     public void setSyncProvider(String provider) throws SQLException {
137
138                     }
139
140                     @Override
141                     public int size() {
142                         return 0;
143                     }
144
145                     @Override
146                     public void setMetaData(RowSetMetaData md) throws SQLException {
147
148                     }
149
150                     @Override
151                     public ResultSet getOriginal() throws SQLException {
152                         return null;
153                     }
154
155                     @Override
156                     public ResultSet getOriginalRow() throws SQLException {
157                         return null;
158                     }
159
160                     @Override
161                     public void setOriginalRow() throws SQLException {
162
163                     }
164
165                     @Override
166                     public String getTableName() throws SQLException {
167                         return null;
168                     }
169
170                     @Override
171                     public void setTableName(String tabName) throws SQLException {
172
173                     }
174
175                     @Override
176                     public int[] getKeyColumns() throws SQLException {
177                         return new int[0];
178                     }
179
180                     @Override
181                     public void setKeyColumns(int[] keys) throws SQLException {
182
183                     }
184
185                     @Override
186                     public RowSet createShared() throws SQLException {
187                         return null;
188                     }
189
190                     @Override
191                     public CachedRowSet createCopy() throws SQLException {
192                         return null;
193                     }
194
195                     @Override
196                     public CachedRowSet createCopySchema() throws SQLException {
197                         return null;
198                     }
199
200                     @Override
201                     public CachedRowSet createCopyNoConstraints() throws SQLException {
202                         return null;
203                     }
204
205                     @Override
206                     public RowSetWarning getRowSetWarnings() throws SQLException {
207                         return null;
208                     }
209
210                     @Override
211                     public boolean getShowDeleted() throws SQLException {
212                         return false;
213                     }
214
215                     @Override
216                     public void setShowDeleted(boolean b) throws SQLException {
217
218                     }
219
220                     @Override
221                     public void commit() throws SQLException {
222
223                     }
224
225                     @Override
226                     public void rollback() throws SQLException {
227
228                     }
229
230                     @Override
231                     public void rollback(Savepoint s) throws SQLException {
232
233                     }
234
235                     @Override
236                     public void rowSetPopulated(RowSetEvent event, int numRows) throws SQLException {
237
238                     }
239
240                     @Override
241                     public void populate(ResultSet rs, int startRow) throws SQLException {
242
243                     }
244
245                     @Override
246                     public void setPageSize(int size) throws SQLException {
247
248                     }
249
250                     @Override
251                     public int getPageSize() {
252                         return 0;
253                     }
254
255                     @Override
256                     public boolean nextPage() throws SQLException {
257                         return false;
258                     }
259
260                     @Override
261                     public boolean previousPage() throws SQLException {
262                         return false;
263                     }
264
265                     @Override
266                     public String getUrl() throws SQLException {
267                         return null;
268                     }
269
270                     @Override
271                     public void setUrl(String url) throws SQLException {
272
273                     }
274
275                     @Override
276                     public String getDataSourceName() {
277                         return null;
278                     }
279
280                     @Override
281                     public void setDataSourceName(String name) throws SQLException {
282
283                     }
284
285                     @Override
286                     public String getUsername() {
287                         return null;
288                     }
289
290                     @Override
291                     public void setUsername(String name) throws SQLException {
292
293                     }
294
295                     @Override
296                     public String getPassword() {
297                         return null;
298                     }
299
300                     @Override
301                     public void setPassword(String password) throws SQLException {
302
303                     }
304
305                     @Override
306                     public int getTransactionIsolation() {
307                         return 0;
308                     }
309
310                     @Override
311                     public void setTransactionIsolation(int level) throws SQLException {
312
313                     }
314
315                     @Override
316                     public Map<String, Class<?>> getTypeMap() throws SQLException {
317                         return null;
318                     }
319
320                     @Override
321                     public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
322
323                     }
324
325                     @Override
326                     public String getCommand() {
327                         return null;
328                     }
329
330                     @Override
331                     public void setCommand(String cmd) throws SQLException {
332
333                     }
334
335                     @Override
336                     public boolean isReadOnly() {
337                         return false;
338                     }
339
340                     @Override
341                     public void setReadOnly(boolean value) throws SQLException {
342
343                     }
344
345                     @Override
346                     public int getMaxFieldSize() throws SQLException {
347                         return 0;
348                     }
349
350                     @Override
351                     public void setMaxFieldSize(int max) throws SQLException {
352
353                     }
354
355                     @Override
356                     public int getMaxRows() throws SQLException {
357                         return 0;
358                     }
359
360                     @Override
361                     public void setMaxRows(int max) throws SQLException {
362
363                     }
364
365                     @Override
366                     public boolean getEscapeProcessing() throws SQLException {
367                         return false;
368                     }
369
370                     @Override
371                     public void setEscapeProcessing(boolean enable) throws SQLException {
372
373                     }
374
375                     @Override
376                     public int getQueryTimeout() throws SQLException {
377                         return 0;
378                     }
379
380                     @Override
381                     public void setQueryTimeout(int seconds) throws SQLException {
382
383                     }
384
385                     @Override
386                     public void setType(int type) throws SQLException {
387
388                     }
389
390                     @Override
391                     public void setConcurrency(int concurrency) throws SQLException {
392
393                     }
394
395                     @Override
396                     public void setNull(int parameterIndex, int sqlType) throws SQLException {
397
398                     }
399
400                     @Override
401                     public void setNull(String parameterName, int sqlType) throws SQLException {
402
403                     }
404
405                     @Override
406                     public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException {
407
408                     }
409
410                     @Override
411                     public void setNull(String parameterName, int sqlType, String typeName) throws SQLException {
412
413                     }
414
415                     @Override
416                     public void setBoolean(int parameterIndex, boolean x) throws SQLException {
417
418                     }
419
420                     @Override
421                     public void setBoolean(String parameterName, boolean x) throws SQLException {
422
423                     }
424
425                     @Override
426                     public void setByte(int parameterIndex, byte x) throws SQLException {
427
428                     }
429
430                     @Override
431                     public void setByte(String parameterName, byte x) throws SQLException {
432
433                     }
434
435                     @Override
436                     public void setShort(int parameterIndex, short x) throws SQLException {
437
438                     }
439
440                     @Override
441                     public void setShort(String parameterName, short x) throws SQLException {
442
443                     }
444
445                     @Override
446                     public void setInt(int parameterIndex, int x) throws SQLException {
447
448                     }
449
450                     @Override
451                     public void setInt(String parameterName, int x) throws SQLException {
452
453                     }
454
455                     @Override
456                     public void setLong(int parameterIndex, long x) throws SQLException {
457
458                     }
459
460                     @Override
461                     public void setLong(String parameterName, long x) throws SQLException {
462
463                     }
464
465                     @Override
466                     public void setFloat(int parameterIndex, float x) throws SQLException {
467
468                     }
469
470                     @Override
471                     public void setFloat(String parameterName, float x) throws SQLException {
472
473                     }
474
475                     @Override
476                     public void setDouble(int parameterIndex, double x) throws SQLException {
477
478                     }
479
480                     @Override
481                     public void setDouble(String parameterName, double x) throws SQLException {
482
483                     }
484
485                     @Override
486                     public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException {
487
488                     }
489
490                     @Override
491                     public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException {
492
493                     }
494
495                     @Override
496                     public void setString(int parameterIndex, String x) throws SQLException {
497
498                     }
499
500                     @Override
501                     public void setString(String parameterName, String x) throws SQLException {
502
503                     }
504
505                     @Override
506                     public void setBytes(int parameterIndex, byte[] x) throws SQLException {
507
508                     }
509
510                     @Override
511                     public void setBytes(String parameterName, byte[] x) throws SQLException {
512
513                     }
514
515                     @Override
516                     public void setDate(int parameterIndex, Date x) throws SQLException {
517
518                     }
519
520                     @Override
521                     public void setTime(int parameterIndex, Time x) throws SQLException {
522
523                     }
524
525                     @Override
526                     public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {
527
528                     }
529
530                     @Override
531                     public void setTimestamp(String parameterName, Timestamp x) throws SQLException {
532
533                     }
534
535                     @Override
536                     public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {
537
538                     }
539
540                     @Override
541                     public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException {
542
543                     }
544
545                     @Override
546                     public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
547
548                     }
549
550                     @Override
551                     public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException {
552
553                     }
554
555                     @Override
556                     public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {
557
558                     }
559
560                     @Override
561                     public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException {
562
563                     }
564
565                     @Override
566                     public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
567
568                     }
569
570                     @Override
571                     public void setAsciiStream(String parameterName, InputStream x) throws SQLException {
572
573                     }
574
575                     @Override
576                     public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
577
578                     }
579
580                     @Override
581                     public void setBinaryStream(String parameterName, InputStream x) throws SQLException {
582
583                     }
584
585                     @Override
586                     public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
587
588                     }
589
590                     @Override
591                     public void setCharacterStream(String parameterName, Reader reader) throws SQLException {
592
593                     }
594
595                     @Override
596                     public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
597
598                     }
599
600                     @Override
601                     public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {
602
603                     }
604
605                     @Override
606                     public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException {
607
608                     }
609
610                     @Override
611                     public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {
612
613                     }
614
615                     @Override
616                     public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException {
617
618                     }
619
620                     @Override
621                     public void setObject(String parameterName, Object x) throws SQLException {
622
623                     }
624
625                     @Override
626                     public void setObject(int parameterIndex, Object x) throws SQLException {
627
628                     }
629
630                     @Override
631                     public void setRef(int i, Ref x) throws SQLException {
632
633                     }
634
635                     @Override
636                     public void setBlob(int i, Blob x) throws SQLException {
637
638                     }
639
640                     @Override
641                     public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
642
643                     }
644
645                     @Override
646                     public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
647
648                     }
649
650                     @Override
651                     public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {
652
653                     }
654
655                     @Override
656                     public void setBlob(String parameterName, Blob x) throws SQLException {
657
658                     }
659
660                     @Override
661                     public void setBlob(String parameterName, InputStream inputStream) throws SQLException {
662
663                     }
664
665                     @Override
666                     public void setClob(int i, Clob x) throws SQLException {
667
668                     }
669
670                     @Override
671                     public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
672
673                     }
674
675                     @Override
676                     public void setClob(int parameterIndex, Reader reader) throws SQLException {
677
678                     }
679
680                     @Override
681                     public void setClob(String parameterName, Reader reader, long length) throws SQLException {
682
683                     }
684
685                     @Override
686                     public void setClob(String parameterName, Clob x) throws SQLException {
687
688                     }
689
690                     @Override
691                     public void setClob(String parameterName, Reader reader) throws SQLException {
692
693                     }
694
695                     @Override
696                     public void setArray(int i, Array x) throws SQLException {
697
698                     }
699
700                     @Override
701                     public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
702
703                     }
704
705                     @Override
706                     public void setDate(String parameterName, Date x) throws SQLException {
707
708                     }
709
710                     @Override
711                     public void setDate(String parameterName, Date x, Calendar cal) throws SQLException {
712
713                     }
714
715                     @Override
716                     public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
717
718                     }
719
720                     @Override
721                     public void setTime(String parameterName, Time x) throws SQLException {
722
723                     }
724
725                     @Override
726                     public void setTime(String parameterName, Time x, Calendar cal) throws SQLException {
727
728                     }
729
730                     @Override
731                     public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {
732
733                     }
734
735                     @Override
736                     public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException {
737
738                     }
739
740                     @Override
741                     public void clearParameters() throws SQLException {
742
743                     }
744
745                     @Override
746                     public void execute() throws SQLException {
747
748                     }
749
750                     @Override
751                     public void addRowSetListener(RowSetListener listener) {
752
753                     }
754
755                     @Override
756                     public void removeRowSetListener(RowSetListener listener) {
757
758                     }
759
760                     @Override
761                     public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
762
763                     }
764
765                     @Override
766                     public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
767
768                     }
769
770                     @Override
771                     public void setRowId(int parameterIndex, RowId x) throws SQLException {
772
773                     }
774
775                     @Override
776                     public void setRowId(String parameterName, RowId x) throws SQLException {
777
778                     }
779
780                     @Override
781                     public void setNString(int parameterIndex, String value) throws SQLException {
782
783                     }
784
785                     @Override
786                     public void setNString(String parameterName, String value) throws SQLException {
787
788                     }
789
790                     @Override
791                     public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
792
793                     }
794
795                     @Override
796                     public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {
797
798                     }
799
800                     @Override
801                     public void setNCharacterStream(String parameterName, Reader value) throws SQLException {
802
803                     }
804
805                     @Override
806                     public void setNClob(String parameterName, NClob value) throws SQLException {
807
808                     }
809
810                     @Override
811                     public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
812
813                     }
814
815                     @Override
816                     public void setNClob(String parameterName, Reader reader) throws SQLException {
817
818                     }
819
820                     @Override
821                     public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
822
823                     }
824
825                     @Override
826                     public void setNClob(int parameterIndex, NClob value) throws SQLException {
827
828                     }
829
830                     @Override
831                     public void setNClob(int parameterIndex, Reader reader) throws SQLException {
832
833                     }
834
835                     @Override
836                     public void setURL(int parameterIndex, URL x) throws SQLException {
837
838                     }
839
840                     @Override
841                     public boolean next() throws SQLException {
842                         return false;
843                     }
844
845                     @Override
846                     public void close() throws SQLException {
847
848                     }
849
850                     @Override
851                     public boolean wasNull() throws SQLException {
852                         return false;
853                     }
854
855                     @Override
856                     public String getString(int columnIndex) throws SQLException {
857                         return null;
858                     }
859
860                     @Override
861                     public boolean getBoolean(int columnIndex) throws SQLException {
862                         return false;
863                     }
864
865                     @Override
866                     public byte getByte(int columnIndex) throws SQLException {
867                         return 0;
868                     }
869
870                     @Override
871                     public short getShort(int columnIndex) throws SQLException {
872                         return 0;
873                     }
874
875                     @Override
876                     public int getInt(int columnIndex) throws SQLException {
877                         return 0;
878                     }
879
880                     @Override
881                     public long getLong(int columnIndex) throws SQLException {
882                         return 0;
883                     }
884
885                     @Override
886                     public float getFloat(int columnIndex) throws SQLException {
887                         return 0;
888                     }
889
890                     @Override
891                     public double getDouble(int columnIndex) throws SQLException {
892                         return 0;
893                     }
894
895                     @Override
896                     public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
897                         return null;
898                     }
899
900                     @Override
901                     public byte[] getBytes(int columnIndex) throws SQLException {
902                         return new byte[0];
903                     }
904
905                     @Override
906                     public Date getDate(int columnIndex) throws SQLException {
907                         return null;
908                     }
909
910                     @Override
911                     public Time getTime(int columnIndex) throws SQLException {
912                         return null;
913                     }
914
915                     @Override
916                     public Timestamp getTimestamp(int columnIndex) throws SQLException {
917                         return null;
918                     }
919
920                     @Override
921                     public InputStream getAsciiStream(int columnIndex) throws SQLException {
922                         return null;
923                     }
924
925                     @Override
926                     public InputStream getUnicodeStream(int columnIndex) throws SQLException {
927                         return null;
928                     }
929
930                     @Override
931                     public InputStream getBinaryStream(int columnIndex) throws SQLException {
932                         return null;
933                     }
934
935                     @Override
936                     public String getString(String columnLabel) throws SQLException {
937                         return null;
938                     }
939
940                     @Override
941                     public boolean getBoolean(String columnLabel) throws SQLException {
942                         return false;
943                     }
944
945                     @Override
946                     public byte getByte(String columnLabel) throws SQLException {
947                         return 0;
948                     }
949
950                     @Override
951                     public short getShort(String columnLabel) throws SQLException {
952                         return 0;
953                     }
954
955                     @Override
956                     public int getInt(String columnLabel) throws SQLException {
957                         return 0;
958                     }
959
960                     @Override
961                     public long getLong(String columnLabel) throws SQLException {
962                         return 0;
963                     }
964
965                     @Override
966                     public float getFloat(String columnLabel) throws SQLException {
967                         return 0;
968                     }
969
970                     @Override
971                     public double getDouble(String columnLabel) throws SQLException {
972                         return 0;
973                     }
974
975                     @Override
976                     public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
977                         return null;
978                     }
979
980                     @Override
981                     public byte[] getBytes(String columnLabel) throws SQLException {
982                         return new byte[0];
983                     }
984
985                     @Override
986                     public Date getDate(String columnLabel) throws SQLException {
987                         return null;
988                     }
989
990                     @Override
991                     public Time getTime(String columnLabel) throws SQLException {
992                         return null;
993                     }
994
995                     @Override
996                     public Timestamp getTimestamp(String columnLabel) throws SQLException {
997                         return null;
998                     }
999
1000                     @Override
1001                     public InputStream getAsciiStream(String columnLabel) throws SQLException {
1002                         return null;
1003                     }
1004
1005                     @Override
1006                     public InputStream getUnicodeStream(String columnLabel) throws SQLException {
1007                         return null;
1008                     }
1009
1010                     @Override
1011                     public InputStream getBinaryStream(String columnLabel) throws SQLException {
1012                         return null;
1013                     }
1014
1015                     @Override
1016                     public SQLWarning getWarnings() throws SQLException {
1017                         return null;
1018                     }
1019
1020                     @Override
1021                     public void clearWarnings() throws SQLException {
1022
1023                     }
1024
1025                     @Override
1026                     public String getCursorName() throws SQLException {
1027                         return null;
1028                     }
1029
1030                     @Override
1031                     public ResultSetMetaData getMetaData() throws SQLException {
1032                         return null;
1033                     }
1034
1035                     @Override
1036                     public Object getObject(int columnIndex) throws SQLException {
1037                         return null;
1038                     }
1039
1040                     @Override
1041                     public Object getObject(String columnLabel) throws SQLException {
1042                         return null;
1043                     }
1044
1045                     @Override
1046                     public int findColumn(String columnLabel) throws SQLException {
1047                         return 0;
1048                     }
1049
1050                     @Override
1051                     public Reader getCharacterStream(int columnIndex) throws SQLException {
1052                         return null;
1053                     }
1054
1055                     @Override
1056                     public Reader getCharacterStream(String columnLabel) throws SQLException {
1057                         return null;
1058                     }
1059
1060                     @Override
1061                     public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
1062                         return null;
1063                     }
1064
1065                     @Override
1066                     public BigDecimal getBigDecimal(String columnLabel) throws SQLException {
1067                         return null;
1068                     }
1069
1070                     @Override
1071                     public boolean isBeforeFirst() throws SQLException {
1072                         return false;
1073                     }
1074
1075                     @Override
1076                     public boolean isAfterLast() throws SQLException {
1077                         return false;
1078                     }
1079
1080                     @Override
1081                     public boolean isFirst() throws SQLException {
1082                         return false;
1083                     }
1084
1085                     @Override
1086                     public boolean isLast() throws SQLException {
1087                         return false;
1088                     }
1089
1090                     @Override
1091                     public void beforeFirst() throws SQLException {
1092
1093                     }
1094
1095                     @Override
1096                     public void afterLast() throws SQLException {
1097
1098                     }
1099
1100                     @Override
1101                     public boolean first() throws SQLException {
1102                         return false;
1103                     }
1104
1105                     @Override
1106                     public boolean last() throws SQLException {
1107                         return false;
1108                     }
1109
1110                     @Override
1111                     public int getRow() throws SQLException {
1112                         return 0;
1113                     }
1114
1115                     @Override
1116                     public boolean absolute(int row) throws SQLException {
1117                         return false;
1118                     }
1119
1120                     @Override
1121                     public boolean relative(int rows) throws SQLException {
1122                         return false;
1123                     }
1124
1125                     @Override
1126                     public boolean previous() throws SQLException {
1127                         return false;
1128                     }
1129
1130                     @Override
1131                     public void setFetchDirection(int direction) throws SQLException {
1132
1133                     }
1134
1135                     @Override
1136                     public int getFetchDirection() throws SQLException {
1137                         return 0;
1138                     }
1139
1140                     @Override
1141                     public void setFetchSize(int rows) throws SQLException {
1142
1143                     }
1144
1145                     @Override
1146                     public int getFetchSize() throws SQLException {
1147                         return 0;
1148                     }
1149
1150                     @Override
1151                     public int getType() throws SQLException {
1152                         return 0;
1153                     }
1154
1155                     @Override
1156                     public int getConcurrency() throws SQLException {
1157                         return 0;
1158                     }
1159
1160                     @Override
1161                     public boolean rowUpdated() throws SQLException {
1162                         return false;
1163                     }
1164
1165                     @Override
1166                     public boolean rowInserted() throws SQLException {
1167                         return false;
1168                     }
1169
1170                     @Override
1171                     public boolean rowDeleted() throws SQLException {
1172                         return false;
1173                     }
1174
1175                     @Override
1176                     public void updateNull(int columnIndex) throws SQLException {
1177
1178                     }
1179
1180                     @Override
1181                     public void updateBoolean(int columnIndex, boolean x) throws SQLException {
1182
1183                     }
1184
1185                     @Override
1186                     public void updateByte(int columnIndex, byte x) throws SQLException {
1187
1188                     }
1189
1190                     @Override
1191                     public void updateShort(int columnIndex, short x) throws SQLException {
1192
1193                     }
1194
1195                     @Override
1196                     public void updateInt(int columnIndex, int x) throws SQLException {
1197
1198                     }
1199
1200                     @Override
1201                     public void updateLong(int columnIndex, long x) throws SQLException {
1202
1203                     }
1204
1205                     @Override
1206                     public void updateFloat(int columnIndex, float x) throws SQLException {
1207
1208                     }
1209
1210                     @Override
1211                     public void updateDouble(int columnIndex, double x) throws SQLException {
1212
1213                     }
1214
1215                     @Override
1216                     public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
1217
1218                     }
1219
1220                     @Override
1221                     public void updateString(int columnIndex, String x) throws SQLException {
1222
1223                     }
1224
1225                     @Override
1226                     public void updateBytes(int columnIndex, byte[] x) throws SQLException {
1227
1228                     }
1229
1230                     @Override
1231                     public void updateDate(int columnIndex, Date x) throws SQLException {
1232
1233                     }
1234
1235                     @Override
1236                     public void updateTime(int columnIndex, Time x) throws SQLException {
1237
1238                     }
1239
1240                     @Override
1241                     public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
1242
1243                     }
1244
1245                     @Override
1246                     public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
1247
1248                     }
1249
1250                     @Override
1251                     public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
1252
1253                     }
1254
1255                     @Override
1256                     public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
1257
1258                     }
1259
1260                     @Override
1261                     public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
1262
1263                     }
1264
1265                     @Override
1266                     public void updateObject(int columnIndex, Object x) throws SQLException {
1267
1268                     }
1269
1270                     @Override
1271                     public void updateNull(String columnLabel) throws SQLException {
1272
1273                     }
1274
1275                     @Override
1276                     public void updateBoolean(String columnLabel, boolean x) throws SQLException {
1277
1278                     }
1279
1280                     @Override
1281                     public void updateByte(String columnLabel, byte x) throws SQLException {
1282
1283                     }
1284
1285                     @Override
1286                     public void updateShort(String columnLabel, short x) throws SQLException {
1287
1288                     }
1289
1290                     @Override
1291                     public void updateInt(String columnLabel, int x) throws SQLException {
1292
1293                     }
1294
1295                     @Override
1296                     public void updateLong(String columnLabel, long x) throws SQLException {
1297
1298                     }
1299
1300                     @Override
1301                     public void updateFloat(String columnLabel, float x) throws SQLException {
1302
1303                     }
1304
1305                     @Override
1306                     public void updateDouble(String columnLabel, double x) throws SQLException {
1307
1308                     }
1309
1310                     @Override
1311                     public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
1312
1313                     }
1314
1315                     @Override
1316                     public void updateString(String columnLabel, String x) throws SQLException {
1317
1318                     }
1319
1320                     @Override
1321                     public void updateBytes(String columnLabel, byte[] x) throws SQLException {
1322
1323                     }
1324
1325                     @Override
1326                     public void updateDate(String columnLabel, Date x) throws SQLException {
1327
1328                     }
1329
1330                     @Override
1331                     public void updateTime(String columnLabel, Time x) throws SQLException {
1332
1333                     }
1334
1335                     @Override
1336                     public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
1337
1338                     }
1339
1340                     @Override
1341                     public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
1342
1343                     }
1344
1345                     @Override
1346                     public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
1347
1348                     }
1349
1350                     @Override
1351                     public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {
1352
1353                     }
1354
1355                     @Override
1356                     public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {
1357
1358                     }
1359
1360                     @Override
1361                     public void updateObject(String columnLabel, Object x) throws SQLException {
1362
1363                     }
1364
1365                     @Override
1366                     public void insertRow() throws SQLException {
1367
1368                     }
1369
1370                     @Override
1371                     public void updateRow() throws SQLException {
1372
1373                     }
1374
1375                     @Override
1376                     public void deleteRow() throws SQLException {
1377
1378                     }
1379
1380                     @Override
1381                     public void refreshRow() throws SQLException {
1382
1383                     }
1384
1385                     @Override
1386                     public void cancelRowUpdates() throws SQLException {
1387
1388                     }
1389
1390                     @Override
1391                     public void moveToInsertRow() throws SQLException {
1392
1393                     }
1394
1395                     @Override
1396                     public void moveToCurrentRow() throws SQLException {
1397
1398                     }
1399
1400                     @Override
1401                     public Statement getStatement() throws SQLException {
1402                         return null;
1403                     }
1404
1405                     @Override
1406                     public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
1407                         return null;
1408                     }
1409
1410                     @Override
1411                     public Ref getRef(int columnIndex) throws SQLException {
1412                         return null;
1413                     }
1414
1415                     @Override
1416                     public Blob getBlob(int columnIndex) throws SQLException {
1417                         return null;
1418                     }
1419
1420                     @Override
1421                     public Clob getClob(int columnIndex) throws SQLException {
1422                         return null;
1423                     }
1424
1425                     @Override
1426                     public Array getArray(int columnIndex) throws SQLException {
1427                         return null;
1428                     }
1429
1430                     @Override
1431                     public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException {
1432                         return null;
1433                     }
1434
1435                     @Override
1436                     public Ref getRef(String columnLabel) throws SQLException {
1437                         return null;
1438                     }
1439
1440                     @Override
1441                     public Blob getBlob(String columnLabel) throws SQLException {
1442                         return null;
1443                     }
1444
1445                     @Override
1446                     public Clob getClob(String columnLabel) throws SQLException {
1447                         return null;
1448                     }
1449
1450                     @Override
1451                     public Array getArray(String columnLabel) throws SQLException {
1452                         return null;
1453                     }
1454
1455                     @Override
1456                     public Date getDate(int columnIndex, Calendar cal) throws SQLException {
1457                         return null;
1458                     }
1459
1460                     @Override
1461                     public Date getDate(String columnLabel, Calendar cal) throws SQLException {
1462                         return null;
1463                     }
1464
1465                     @Override
1466                     public Time getTime(int columnIndex, Calendar cal) throws SQLException {
1467                         return null;
1468                     }
1469
1470                     @Override
1471                     public Time getTime(String columnLabel, Calendar cal) throws SQLException {
1472                         return null;
1473                     }
1474
1475                     @Override
1476                     public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
1477                         return null;
1478                     }
1479
1480                     @Override
1481                     public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
1482                         return null;
1483                     }
1484
1485                     @Override
1486                     public URL getURL(int columnIndex) throws SQLException {
1487                         return null;
1488                     }
1489
1490                     @Override
1491                     public URL getURL(String columnLabel) throws SQLException {
1492                         return null;
1493                     }
1494
1495                     @Override
1496                     public void updateRef(int columnIndex, Ref x) throws SQLException {
1497
1498                     }
1499
1500                     @Override
1501                     public void updateRef(String columnLabel, Ref x) throws SQLException {
1502
1503                     }
1504
1505                     @Override
1506                     public void updateBlob(int columnIndex, Blob x) throws SQLException {
1507
1508                     }
1509
1510                     @Override
1511                     public void updateBlob(String columnLabel, Blob x) throws SQLException {
1512
1513                     }
1514
1515                     @Override
1516                     public void updateClob(int columnIndex, Clob x) throws SQLException {
1517
1518                     }
1519
1520                     @Override
1521                     public void updateClob(String columnLabel, Clob x) throws SQLException {
1522
1523                     }
1524
1525                     @Override
1526                     public void updateArray(int columnIndex, Array x) throws SQLException {
1527
1528                     }
1529
1530                     @Override
1531                     public void updateArray(String columnLabel, Array x) throws SQLException {
1532
1533                     }
1534
1535                     @Override
1536                     public RowId getRowId(int columnIndex) throws SQLException {
1537                         return null;
1538                     }
1539
1540                     @Override
1541                     public RowId getRowId(String columnLabel) throws SQLException {
1542                         return null;
1543                     }
1544
1545                     @Override
1546                     public void updateRowId(int columnIndex, RowId x) throws SQLException {
1547
1548                     }
1549
1550                     @Override
1551                     public void updateRowId(String columnLabel, RowId x) throws SQLException {
1552
1553                     }
1554
1555                     @Override
1556                     public int getHoldability() throws SQLException {
1557                         return 0;
1558                     }
1559
1560                     @Override
1561                     public boolean isClosed() throws SQLException {
1562                         return false;
1563                     }
1564
1565                     @Override
1566                     public void updateNString(int columnIndex, String nString) throws SQLException {
1567
1568                     }
1569
1570                     @Override
1571                     public void updateNString(String columnLabel, String nString) throws SQLException {
1572
1573                     }
1574
1575                     @Override
1576                     public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
1577
1578                     }
1579
1580                     @Override
1581                     public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
1582
1583                     }
1584
1585                     @Override
1586                     public NClob getNClob(int columnIndex) throws SQLException {
1587                         return null;
1588                     }
1589
1590                     @Override
1591                     public NClob getNClob(String columnLabel) throws SQLException {
1592                         return null;
1593                     }
1594
1595                     @Override
1596                     public SQLXML getSQLXML(int columnIndex) throws SQLException {
1597                         return null;
1598                     }
1599
1600                     @Override
1601                     public SQLXML getSQLXML(String columnLabel) throws SQLException {
1602                         return null;
1603                     }
1604
1605                     @Override
1606                     public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
1607
1608                     }
1609
1610                     @Override
1611                     public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
1612
1613                     }
1614
1615                     @Override
1616                     public String getNString(int columnIndex) throws SQLException {
1617                         return null;
1618                     }
1619
1620                     @Override
1621                     public String getNString(String columnLabel) throws SQLException {
1622                         return null;
1623                     }
1624
1625                     @Override
1626                     public Reader getNCharacterStream(int columnIndex) throws SQLException {
1627                         return null;
1628                     }
1629
1630                     @Override
1631                     public Reader getNCharacterStream(String columnLabel) throws SQLException {
1632                         return null;
1633                     }
1634
1635                     @Override
1636                     public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
1637
1638                     }
1639
1640                     @Override
1641                     public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
1642
1643                     }
1644
1645                     @Override
1646                     public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
1647
1648                     }
1649
1650                     @Override
1651                     public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
1652
1653                     }
1654
1655                     @Override
1656                     public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
1657
1658                     }
1659
1660                     @Override
1661                     public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
1662
1663                     }
1664
1665                     @Override
1666                     public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
1667
1668                     }
1669
1670                     @Override
1671                     public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
1672
1673                     }
1674
1675                     @Override
1676                     public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
1677
1678                     }
1679
1680                     @Override
1681                     public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
1682
1683                     }
1684
1685                     @Override
1686                     public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
1687
1688                     }
1689
1690                     @Override
1691                     public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
1692
1693                     }
1694
1695                     @Override
1696                     public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
1697
1698                     }
1699
1700                     @Override
1701                     public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
1702
1703                     }
1704
1705                     @Override
1706                     public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
1707
1708                     }
1709
1710                     @Override
1711                     public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
1712
1713                     }
1714
1715                     @Override
1716                     public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
1717
1718                     }
1719
1720                     @Override
1721                     public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
1722
1723                     }
1724
1725                     @Override
1726                     public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
1727
1728                     }
1729
1730                     @Override
1731                     public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
1732
1733                     }
1734
1735                     @Override
1736                     public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
1737
1738                     }
1739
1740                     @Override
1741                     public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
1742
1743                     }
1744
1745                     @Override
1746                     public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
1747
1748                     }
1749
1750                     @Override
1751                     public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
1752
1753                     }
1754
1755                     @Override
1756                     public void updateClob(int columnIndex, Reader reader) throws SQLException {
1757
1758                     }
1759
1760                     @Override
1761                     public void updateClob(String columnLabel, Reader reader) throws SQLException {
1762
1763                     }
1764
1765                     @Override
1766                     public void updateNClob(int columnIndex, Reader reader) throws SQLException {
1767
1768                     }
1769
1770                     @Override
1771                     public void updateNClob(String columnLabel, Reader reader) throws SQLException {
1772
1773                     }
1774
1775                     @Override
1776                     public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
1777                         return null;
1778                     }
1779
1780                     @Override
1781                     public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
1782                         return null;
1783                     }
1784
1785                     @Override
1786                     public <T> T unwrap(Class<T> iface) throws SQLException {
1787                         return null;
1788                     }
1789
1790                     @Override
1791                     public boolean isWrapperFor(Class<?> iface) throws SQLException {
1792                         return false;
1793                     }
1794
1795                     @Override
1796                     public void setMatchColumn(int columnIdx) throws SQLException {
1797
1798                     }
1799
1800                     @Override
1801                     public void setMatchColumn(int[] columnIdxes) throws SQLException {
1802
1803                     }
1804
1805                     @Override
1806                     public void setMatchColumn(String columnName) throws SQLException {
1807
1808                     }
1809
1810                     @Override
1811                     public void setMatchColumn(String[] columnNames) throws SQLException {
1812
1813                     }
1814
1815                     @Override
1816                     public int[] getMatchColumnIndexes() throws SQLException {
1817                         return new int[0];
1818                     }
1819
1820                     @Override
1821                     public String[] getMatchColumnNames() throws SQLException {
1822                         return new String[0];
1823                     }
1824
1825                     @Override
1826                     public void unsetMatchColumn(int columnIdx) throws SQLException {
1827
1828                     }
1829
1830                     @Override
1831                     public void unsetMatchColumn(int[] columnIdxes) throws SQLException {
1832
1833                     }
1834
1835                     @Override
1836                     public void unsetMatchColumn(String columnName) throws SQLException {
1837
1838                     }
1839
1840                     @Override
1841                     public void unsetMatchColumn(String[] columnName) throws SQLException {
1842
1843                     }
1844                 };
1845                 return cachedRowSetMocked;
1846             }
1847
1848             @Override
1849             public boolean writeData(String s, ArrayList<String> arrayList, String s1) throws SQLException {
1850                 return false;
1851             }
1852
1853             @Override
1854             public boolean isActive() {
1855                 return false;
1856             }
1857
1858             @Override
1859             public Connection getConnection() throws SQLException {
1860                 return null;
1861             }
1862
1863             @Override
1864             public Connection getConnection(String username, String password) throws SQLException {
1865                 return null;
1866             }
1867
1868             @Override
1869             public <T> T unwrap(Class<T> iface) throws SQLException {
1870                 return null;
1871             }
1872
1873             @Override
1874             public boolean isWrapperFor(Class<?> iface) throws SQLException {
1875                 return false;
1876             }
1877
1878             @Override
1879             public PrintWriter getLogWriter() throws SQLException {
1880                 return null;
1881             }
1882
1883             @Override
1884             public void setLogWriter(PrintWriter out) throws SQLException {
1885
1886             }
1887
1888             @Override
1889             public void setLoginTimeout(int seconds) throws SQLException {
1890
1891             }
1892
1893             @Override
1894             public int getLoginTimeout() throws SQLException {
1895                 return 0;
1896             }
1897
1898             @Override
1899             public Logger getParentLogger() throws SQLFeatureNotSupportedException {
1900                 return null;
1901             }
1902         };
1903
1904         netconfDataAccessService = new NetconfDataAccessServiceImpl();
1905         netconfDataAccessService.setSchema(schema);
1906         netconfDataAccessService.setDbLibService(dbLibServiceMocked);
1907     }
1908
1909     @Test
1910     public void testRetrieveConfigFileName() throws IOException {
1911         String response = netconfDataAccessService.retrieveConfigFileName("test");
1912
1913         Assert.assertEquals("", response);
1914     }
1915
1916     @Test
1917     public void testRetrieveConnectionDetails() throws IOException {
1918         ConnectionDetails netconfConnectionDetails = new ConnectionDetails();
1919
1920         boolean response = netconfDataAccessService.retrieveConnectionDetails("test", netconfConnectionDetails);
1921
1922         Assert.assertEquals(false, response);
1923     }
1924
1925     @Test
1926     public void testRetrieveNetconfConnectionDetails() throws IOException {
1927         NetconfConnectionDetails netconfConnectionDetails = new NetconfConnectionDetails();
1928
1929         boolean response = netconfDataAccessService.retrieveNetconfConnectionDetails("test", netconfConnectionDetails);
1930
1931         Assert.assertEquals(true, response);
1932     }
1933
1934     @Test
1935     public void testLogDeviceInteraction() throws IOException {
1936         NetconfConnectionDetails netconfConnectionDetails = new NetconfConnectionDetails();
1937
1938         boolean response = netconfDataAccessService.logDeviceInteraction("test", "",
1939                                                                          "","");
1940
1941         Assert.assertEquals(true, response);
1942     }
1943 }