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

8

tests

0

failures

0

ignored

0.050s

duration

100%

successful

Tests

Test Duration Result
createNewInvalidConnectionTO 0.009s passed
createNewValidConnectionTO 0.004s passed
testDeserializeCorrectClass 0.008s passed
testDeserializeWrongClass 0.006s passed
testEnumSettingInvalid 0.004s passed
testEnumSettingValid 0.005s passed
testGetSettingsAndManagerFromPlugin 0.003s passed
testRestore 0.011s passed

Standard output

<config>
   <machineName>syncanytest1662233073</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/aaa5946465404317435336bbb</path>
      </nest>
   </connection>
</config>

Standard error

18-11-18 14:33:55.034 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.034 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.036 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.039 | org.syncany.plu | Test worker    | WARN : Missing mandatory field DummyTransferSettings#foo
18-11-18 14:33:55.039 | org.syncany.plu | Test worker    | SEVE : Unable to check if option(s) are valid.
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor4.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.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
	at sun.reflect.GeneratedMethodAccessor6.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:117)
	at sun.reflect.GeneratedMethodAccessor5.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:155)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
	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.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.syncany.plugins.transfer.StorageException: Missing mandatory field DummyTransferSettings#foo
	at org.syncany.plugins.transfer.TransferSettings.validateRequiredFields(TransferSettings.java:214)
	... 52 more
18-11-18 14:33:55.045 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.045 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.051 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.053 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.054 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.059 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.060 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.062 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.063 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.067 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.068 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.072 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.072 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.075 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.080 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.080 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.083 | org.syncany.plu | Test worker    | FINE : Validating required fields
18-11-18 14:33:55.083 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
18-11-18 14:33:55.086 | org.syncany.plu | Test worker    | FINE : Validating required fields