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

8

tests

0

failures

0

ignored

0.245s

duration

100%

successful

Tests

Test Duration Result
createNewInvalidConnectionTO 0.029s passed
createNewValidConnectionTO 0.016s passed
testDeserializeCorrectClass 0.060s passed
testDeserializeWrongClass 0.031s passed
testEnumSettingInvalid 0.017s passed
testEnumSettingValid 0.027s passed
testGetSettingsAndManagerFromPlugin 0.016s passed
testRestore 0.049s passed

Standard output

<config>
   <machineName>syncanytest345659145</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/aaa8941363620067938397bbb</path>
      </nest>
   </connection>
</config>

Standard error

25-5-17 10:18:56.713 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.714 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.743 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.744 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.754 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.762 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.764 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.781 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.782 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.837 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.847 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.848 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.860 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.861 | org.syncany.plu | Test worker    | WARN : Missing mandatory field DummyTransferSettings#foo
25-5-17 10:18:56.861 | 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
25-5-17 10:18:56.878 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.878 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.896 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.897 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:18:56.907 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.937 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.938 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.950 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:18:56.951 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.