Class org.syncany.tests.integration.plugins.TransferSettingsTest

8

tests

0

failures

0

ignored

0.090s

duration

100%

successful

Tests

Test Duration Result
createNewInvalidConnectionTO 0.007s passed
createNewValidConnectionTO 0.013s passed
testDeserializeCorrectClass 0.016s passed
testDeserializeWrongClass 0.010s passed
testEnumSettingInvalid 0.017s passed
testEnumSettingValid 0.007s passed
testGetSettingsAndManagerFromPlugin 0.007s passed
testRestore 0.013s passed

Standard output

<config>
   <machineName>syncanytest1158496705</machineName>
   <connection class="org.syncany.plugins.dummy.DummyTransferSettings" type="dummy">
      <foo>foo-test</foo>
      <baz>baz</baz>
      <number>1234</number>
      <nest class="org.syncany.plugins.local.LocalTransferSettings" type="local">
         <path>/tmp/aaa5810254621044608893bbb</path>
      </nest>
   </connection>
</config>

Standard error

27-4-17 11:02:45.120 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.120 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.136 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.136 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.143 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.151 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.151 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.154 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.154 | org.syncany.plu | Test worker    | WARN : Missing mandatory field DummyTransferSettings#foo
27-4-17 11:02:45.154 | org.syncany.plu | Test worker    | SEVE : Unable to check if option(s) are valid.
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.syncany.plugins.transfer.TransferSettings.isValid(TransferSettings.java:171)
	at org.syncany.tests.integration.plugins.TransferSettingsTest.createNewInvalidConnectionTO(TransferSettingsTest.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:147)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:129)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.syncany.plugins.transfer.StorageException: Missing mandatory field DummyTransferSettings#foo
	at org.syncany.plugins.transfer.TransferSettings.validateRequiredFields(TransferSettings.java:214)
	... 50 more
27-4-17 11:02:45.157 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.158 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.171 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.174 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.174 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.183 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.185 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.191 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.191 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.199 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.200 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
27-4-17 11:02:45.203 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.208 | org.syncany.plu | Test worker    | FINE : Validating required fields
27-4-17 11:02:45.208 | org.syncany.plu | Test worker    | FINE : Validating required fields