comparison gwt-client/src/test/java/test/SimpleRecommendation.java @ 9226:83aee0942eae

JUnit-Tests - tkh works
author gernotbelger
date Wed, 04 Jul 2018 17:14:16 +0200
parents 48d87af1243e
children 84397da33d17
comparison
equal deleted inserted replaced
9225:001a8ed1e71d 9226:83aee0942eae
67 final Recommendation recom1 = new Recommendation(this.getFactory(), this.getIds(), this.getTarget()); 67 final Recommendation recom1 = new Recommendation(this.getFactory(), this.getIds(), this.getTarget());
68 recom1.setDisplayName(this.displayName); 68 recom1.setDisplayName(this.displayName);
69 final Recommendation recom2 = new Recommendation(rec2.getFactory(), rec2.getIds(), rec2.getTarget()); 69 final Recommendation recom2 = new Recommendation(rec2.getFactory(), rec2.getIds(), rec2.getTarget());
70 recom2.setDisplayName(rec2.getDisplayName()); 70 recom2.setDisplayName(rec2.getDisplayName());
71 final Artifact[] artifacts = loadMany(new Recommendation[] { recom1, recom2 }, null, collection, serverUrl, locale); 71 final Artifact[] artifacts = loadMany(new Recommendation[] { recom1, recom2 }, null, collection, serverUrl, locale);
72 final String rec1String = RecommandationUtils.createDataString(artifacts[0].getUuid(), recom1, new NilDatacageTwinPanelInfo("xxxx")); 72 final String rec1String = RecommandationUtils.createDataString(artifacts[0].getUuid(), recom1, new NilDatacageTwinPanelInfo("xxxx", "yyy"));
73 final String rec2String = RecommandationUtils.createDataString(artifacts[1].getUuid(), recom2, new NilDatacageTwinPanelInfo("xxxx")); 73 final String rec2String = RecommandationUtils.createDataString(artifacts[1].getUuid(), recom2, new NilDatacageTwinPanelInfo("xxxx", "yyy"));
74 final String combinedIdNeu = rec1String + "#" + rec2String; 74 final String combinedIdNeu = rec1String + "#" + rec2String;
75 return combinedIdNeu; 75 return combinedIdNeu;
76 76
77 } 77 }
78 78

http://dive4elements.wald.intevation.org