Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/AbstractModuleRunner.java @ 9226:83aee0942eae
JUnit-Tests - tkh works
author | gernotbelger |
---|---|
date | Wed, 04 Jul 2018 17:14:16 +0200 |
parents | de55d9a94796 |
children | dba14da43f23 |
comparison
equal
deleted
inserted
replaced
9225:001a8ed1e71d | 9226:83aee0942eae |
---|---|
72 private final HttpClient client; | 72 private final HttpClient client; |
73 | 73 |
74 private static final String exportFileDir = "D:" + File.separator; | 74 private static final String exportFileDir = "D:" + File.separator; |
75 private static final String IGNORE_ERSTELLDATUM = "# Datum der Erstellung"; | 75 private static final String IGNORE_ERSTELLDATUM = "# Datum der Erstellung"; |
76 private static final String IGNORE_FLYS_VERSION = "# FLYS-Version:"; | 76 private static final String IGNORE_FLYS_VERSION = "# FLYS-Version:"; |
77 private static final String IGNORE_BEARBEITER = "# Bearbeiter:"; | 77 private static final String IGNORE_BEARBEITER = "NEIN_DOCH_NICHT";// "# Bearbeiter:"; |
78 | 78 |
79 private final String username; | 79 private final String username; |
80 private final String password; | 80 private final String password; |
81 private final Infotype infotype; | 81 private final Infotype infotype; |
82 private final String userUuid; | 82 private final String userUuid; |
181 } | 181 } |
182 | 182 |
183 return ""; | 183 return ""; |
184 } | 184 } |
185 | 185 |
186 private final void feed(final Data[] data) throws ServerException, ConnectionException { | 186 protected final void feed(final Data[] data) throws ServerException, ConnectionException { |
187 final Document feed = ClientProtocolUtils.newFeedDocument(getArtifact().getUuid(), getArtifact().getHash(), createKVP(data)); | 187 final Document feed = ClientProtocolUtils.newFeedDocument(getArtifact().getUuid(), getArtifact().getHash(), createKVP(data)); |
188 final Document description = (Document) this.client.feed( | 188 final Document description = (Document) this.client.feed( |
189 new org.dive4elements.artifacts.httpclient.objects.Artifact(getArtifact().getUuid(), getArtifact().getHash()), feed, | 189 new org.dive4elements.artifacts.httpclient.objects.Artifact(getArtifact().getUuid(), getArtifact().getHash()), feed, |
190 new DocumentResponseHandler()); | 190 new DocumentResponseHandler()); |
191 | 191 |
327 feedAndGo(new Data[] { data }, 0); | 327 feedAndGo(new Data[] { data }, 0); |
328 } | 328 } |
329 | 329 |
330 protected final void export(final boolean exportToFile) throws IOException, ServerException { | 330 protected final void export(final boolean exportToFile) throws IOException, ServerException { |
331 final OutputMode[] modes = getArtifact().getArtifactDescription().getOutputModes(); | 331 final OutputMode[] modes = getArtifact().getArtifactDescription().getOutputModes(); |
332 boolean exportFacetCreated = false; | |
332 if (modes != null) { | 333 if (modes != null) { |
333 for (final OutputMode mode : modes) { | 334 for (final OutputMode mode : modes) { |
334 if (mode.getDescription().contains("_export")) | 335 if (mode.getDescription().contains("_export")) { |
335 assertAndWriteToFile(mode.getName(), exportToFile); | 336 assertAndWriteToFile(mode.getName(), exportToFile); |
337 exportFacetCreated = true; | |
338 } | |
336 } | 339 } |
337 } | 340 |
341 } | |
342 assert (exportFacetCreated == true); | |
338 } | 343 } |
339 | 344 |
340 protected final String getRecommendationPairString(final SimpleRecommendation rec1, final SimpleRecommendation rec2) | 345 protected final String getRecommendationPairString(final SimpleRecommendation rec1, final SimpleRecommendation rec2) |
341 throws ConnectionException, ServerException { | 346 throws ConnectionException, ServerException { |
342 | 347 |