-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.xml
More file actions
2254 lines (2134 loc) · 132 KB
/
Copy pathoutput.xml
File metadata and controls
2254 lines (2134 loc) · 132 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<pmd-cpd>
<duplication lines="148" tokens="523">
<file line="1921"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="1704"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ form.submit(null);
return this;
}
/**
* Logs in to Hudson, by using the user name as the password.
*
* <p>
* See {@link #configureUserRealm} for how the container is set up with the user names
* and passwords. All the test accounts have the same user name and password.
*/
public WebClient login(String username) throws Exception {
login(username,username);
return this;
}
/**
* Executes the given closure on the server, by the servlet request handling thread,
* in the context of an HTTP request.
*
* <p>
* In {@link JenkinsRule}, a thread that's executing the test code is different from the thread
* that carries out HTTP requests made through {@link WebClient}. But sometimes you want to
* make assertions and other calls with side-effect from within the request handling thread.
*
* <p>
* This method allows you to do just that. It is useful for testing some methods that
* require {@link org.kohsuke.stapler.StaplerRequest} and {@link org.kohsuke.stapler.StaplerResponse}, or getting the credential
* of the current user (via {@link jenkins.model.Jenkins#getAuthentication()}, and so on.
*
* @param c
* The closure to be executed on the server.
* @return
* The return value from the closure.
* @throws Exception
* If a closure throws any exception, that exception will be carried forward.
*/
public <V> V executeOnServer(final Callable<V> c) throws Exception {
final Exception[] t = new Exception[1];
final List<V> r = new ArrayList<V>(1); // size 1 list
ClosureExecuterAction cea = jenkins.getExtensionList(RootAction.class).get(ClosureExecuterAction.class);
UUID id = UUID.randomUUID();
cea.add(id,new Runnable() {
public void run() {
try {
StaplerResponse rsp = Stapler.getCurrentResponse();
rsp.setStatus(200);
rsp.setContentType("text/html");
r.add(c.call());
} catch (Exception e) {
t[0] = e;
}
}
});
goTo("closures/?uuid="+id);
if (t[0]!=null)
throw t[0];
return r.get(0);
}
public HtmlPage search(String q) throws IOException, SAXException {
HtmlPage top = goTo("");
HtmlForm search = top.getFormByName("search");
search.getInputByName("q").setValueAttribute(q);
return (HtmlPage)search.submit(null);
}
/**
* Short for {@code getPage(r,"")}, to access the top page of a build.
*/
public HtmlPage getPage(Run r) throws IOException, SAXException {
return getPage(r,"");
}
/**
* Accesses a page inside {@link Run}.
*
* @param relative
* Relative URL within the build URL, like "changes". Doesn't start with '/'. Can be empty.
*/
public HtmlPage getPage(Run r, String relative) throws IOException, SAXException {
return goTo(r.getUrl()+relative);
}
public HtmlPage getPage(Item item) throws IOException, SAXException {
return getPage(item,"");
}
public HtmlPage getPage(Item item, String relative) throws IOException, SAXException {
return goTo(item.getUrl()+relative);
}
public HtmlPage getPage(Node item) throws IOException, SAXException {
return getPage(item,"");
}
public HtmlPage getPage(Node item, String relative) throws IOException, SAXException {
return goTo(item.toComputer().getUrl()+relative);
}
public HtmlPage getPage(View view) throws IOException, SAXException {
return goTo(view.getUrl());
}
public HtmlPage getPage(View view, String relative) throws IOException, SAXException {
return goTo(view.getUrl()+relative);
}
/**
* @deprecated
* This method expects a full URL. This method is marked as deprecated to warn you
* that you probably should be using {@link #goTo(String)} method, which accepts
* a relative path within the Hudson being tested. (IOW, if you really need to hit
* a website on the internet, there's nothing wrong with using this method.)
*/
@SuppressWarnings("unchecked")
@Override
public Page getPage(String url) throws IOException, FailingHttpStatusCodeException {
return super.getPage(url);
}
/**
* Requests an HTML page within Jenkins.
*
* @param relative
* Relative path within Jenkins. Starts without '/'.
* For example, "job/test/" to go to a job top page.
*/
public HtmlPage goTo(String relative) throws IOException, SAXException {
Page p = goTo(relative, "text/html");
if (p instanceof HtmlPage) {
return (HtmlPage) p;
} else {
throw new AssertionError("Expected text/html but instead the content type was "+p.getWebResponse().getContentType());
}
}
/**
* Requests a page within Jenkins.
*
* @param relative
* Relative path within Jenkins. Starts without '/'.
* For example, "job/test/" to go to a job top page.
* @param expectedContentType the expected {@link WebResponse#getContentType}, or null to do no such check
*/
public Page goTo(String relative, @CheckForNull String expectedContentType) throws IOException, SAXException {]]></codefragment>
</duplication>
<duplication lines="74" tokens="300">
<file line="2111"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="1880"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ try {
fail(url + " should have been rejected but produced: " + super.getPage(getContextPath() + url).getWebResponse().getContentAsString());
} catch (FailingHttpStatusCodeException x) {
assertEquals(statusCode, x.getStatusCode());
}
}
/**
* Returns the URL of the webapp top page.
* URL ends with '/'.
* <p>This is actually the same as {@link #getURL} and should not be confused with {@link #contextPath}.
*/
public String getContextPath() throws IOException {
return getURL().toExternalForm();
}
/**
* Adds a security crumb to the request.
* Use {@link #createCrumbedUrl} instead if you intend to call {@link WebRequestSettings#setRequestBody}, typical of a POST request.
*/
public WebRequestSettings addCrumb(WebRequestSettings req) {
NameValuePair crumb[] = { new NameValuePair() };
crumb[0].setName(jenkins.getCrumbIssuer().getDescriptor().getCrumbRequestField());
crumb[0].setValue(jenkins.getCrumbIssuer().getCrumb( null ));
req.setRequestParameters(Arrays.asList( crumb ));
return req;
}
/**
* Creates a URL with crumb parameters relative to {{@link #getContextPath()}
*/
public URL createCrumbedUrl(String relativePath) throws IOException {
CrumbIssuer issuer = jenkins.getCrumbIssuer();
String crumbName = issuer.getDescriptor().getCrumbRequestField();
String crumb = issuer.getCrumb(null);
return new URL(getContextPath()+relativePath+"?"+crumbName+"="+crumb);
}
/**
* Makes an HTTP request, process it with the given request handler, and returns the response.
*/
public HtmlPage eval(final Runnable requestHandler) throws IOException, SAXException {
ClosureExecuterAction cea = jenkins.getExtensionList(RootAction.class).get(ClosureExecuterAction.class);
UUID id = UUID.randomUUID();
cea.add(id,requestHandler);
return goTo("closures/?uuid="+id);
}
/**
* Starts an interactive JavaScript debugger, and break at the next JavaScript execution.
*
* <p>
* This is useful during debugging a test so that you can step execute and inspect state of JavaScript.
* This will launch a Swing GUI, and the method returns immediately.
*
* <p>
* Note that installing a debugger appears to make an execution of JavaScript substantially slower.
*
* <p>
* TODO: because each script block evaluation in HtmlUnit is done in a separate Rhino context,
* if you step over from one script block, the debugger fails to kick in on the beginning of the next script
* block.
* This makes it difficult to set a break point on arbitrary script block in the HTML page. We need to fix this
* by tweaking {@link org.mozilla.javascript.tools.debugger.Dim.StackFrame#onLineChange(Context, int)}.
*/
public Dim interactiveJavaScriptDebugger() {
Global global = new Global();
HtmlUnitContextFactory cf = getJavaScriptEngine().getContextFactory();
global.init(cf);
Dim dim = org.mozilla.javascript.tools.debugger.Main.mainEmbedded(cf, global, "Rhino debugger: " + testDescription.getDisplayName());]]></codefragment>
</duplication>
<duplication lines="56" tokens="224">
<file line="1273"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="1134"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ Matchers.notNullValue());
wc.goTo(url); // make sure it successfully loads
}
return null;
}
});
}
/**
* Tokenizes "foo,bar,zot,-bar" and returns "foo,zot" (the token that starts with '-' is handled as
* a cancellation.
*/
private List<String> listProperties(String properties) {
List<String> props = new ArrayList<String>(Arrays.asList(properties.split(",")));
for (String p : props.toArray(new String[props.size()])) {
if (p.startsWith("-")) {
props.remove(p);
props.remove(p.substring(1));
}
}
return props;
}
/**
* Submits the form.
*
* Plain {@link com.gargoylesoftware.htmlunit.html.HtmlForm#submit()} doesn't work correctly due to the use of YUI in Hudson.
*/
public HtmlPage submit(HtmlForm form) throws Exception {
return (HtmlPage) form.submit((HtmlButton) last(form.getHtmlElementsByTagName("button")));
}
/**
* Submits the form by clikcing the submit button of the given name.
*
* @param name
* This corresponds to the @name of <f:submit />
*/
public HtmlPage submit(HtmlForm form, String name) throws Exception {
for( HtmlElement e : form.getHtmlElementsByTagName("button")) {
HtmlElement p = (HtmlElement)e.getParentNode().getParentNode();
if(p.getAttribute("name").equals(name)) {
// To make YUI event handling work, this combo seems to be necessary
// the click will trigger _onClick in buton-*.js, but it doesn't submit the form
// (a comment alluding to this behavior can be seen in submitForm method)
// so to complete it, submit the form later.
//
// Just doing form.submit() doesn't work either, because it doesn't do
// the preparation work needed to pass along the name of the button that
// triggered a submission (more concretely, m_oSubmitTrigger is not set.)
((HtmlButton)e).click();
return (HtmlPage)form.submit((HtmlButton)e);
}
}
throw new AssertionError("No such submit button with the name "+name);
}]]></codefragment>
</duplication>
<duplication lines="25" tokens="198">
<file line="1194"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="1056"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ assertThat("There should be an object that matches XPath:" + xpath, nodes.isEmpty(), is(false));
}
public void assertXPathValue(DomNode page, String xpath, String expectedValue) {
Object node = page.getFirstByXPath(xpath);
assertNotNull("no node found", node);
assertTrue("the found object was not a Node " + xpath, node instanceof org.w3c.dom.Node);
org.w3c.dom.Node n = (org.w3c.dom.Node) node;
String textString = n.getTextContent();
assertEquals("xpath value should match for " + xpath, expectedValue, textString);
}
public void assertXPathValueContains(DomNode page, String xpath, String needle) {
Object node = page.getFirstByXPath(xpath);
assertNotNull("no node found", node);
assertTrue("the found object was not a Node " + xpath, node instanceof org.w3c.dom.Node);
org.w3c.dom.Node n = (org.w3c.dom.Node) node;
String textString = n.getTextContent();
assertTrue("needle found in haystack", textString.contains(needle));
}
public void assertXPathResultsContainText(DomNode page, String xpath, String needle) {
List<? extends Object> nodes = page.getByXPath(xpath);]]></codefragment>
</duplication>
<duplication lines="23" tokens="193">
<file line="114"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="145"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="176"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="208"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<codefragment><![CDATA[ public void testALLFilter() throws Exception {
FreeStyleProject project = j.createFreeStyleProject("project");
FreeStyleBuild successfulBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.UNSTABLE)));
FreeStyleBuild unstableBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.FAILURE)));
FreeStyleBuild failedBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.NOT_BUILT)));
FreeStyleBuild notBuiltBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.ABORTED)));
FreeStyleBuild abortedBuild = project.scheduleBuild2(0).get();
FreeStyleProject paramProject = j.createFreeStyleProject("paramProject");
ParametersDefinitionProperty pdp =
new ParametersDefinitionProperty(new RunParameterDefinition("RUN",
project.getName(),
"run description",
RunParameterFilter.ALL));]]></codefragment>
</duplication>
<duplication lines="52" tokens="192">
<file line="896"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="779"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ createTmpDir().getPath(), "1", Node.Mode.NORMAL, labels==null?"":labels, createComputerLauncher(env), RetentionStrategy.NOOP, Collections.EMPTY_LIST);
jenkins.addNode(slave);
return slave;
}
}
public PretendSlave createPretendSlave(FakeLauncher faker) throws Exception {
synchronized (jenkins) {
int sz = jenkins.getNodes().size();
PretendSlave slave = new PretendSlave("slave" + sz, createTmpDir().getPath(), "", createComputerLauncher(null), faker);
jenkins.addNode(slave);
return slave;
}
}
/**
* Creates a {@link hudson.slaves.CommandLauncher} for launching a slave locally.
*
* @param env
* Environment variables to add to the slave process. Can be null.
*/
public CommandLauncher createComputerLauncher(EnvVars env) throws URISyntaxException, MalformedURLException {
int sz = jenkins.getNodes().size();
return new CommandLauncher(
String.format("\"%s/bin/java\" %s -jar \"%s\"",
System.getProperty("java.home"),
SLAVE_DEBUG_PORT>0 ? " -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address="+(SLAVE_DEBUG_PORT+sz): "",
new File(jenkins.getJnlpJars("slave.jar").getURL().toURI()).getAbsolutePath()),
env);
}
/**
* Create a new slave on the local host and wait for it to come online
* before returning.
*/
public DumbSlave createOnlineSlave() throws Exception {
return createOnlineSlave(null);
}
/**
* Create a new slave on the local host and wait for it to come online
* before returning.
*/
public DumbSlave createOnlineSlave(Label l) throws Exception {
return createOnlineSlave(l, null);
}
/**
* Create a new slave on the local host and wait for it to come online
* before returning
*/
@SuppressWarnings({"deprecation"})]]></codefragment>
</duplication>
<duplication lines="52" tokens="192">
<file line="1822"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="1617"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ throw new AssertionError("JenkinsRule " + testDescription.getDisplayName() + " is not supposed to be serialized");
}
/**
* This is to assist Groovy test clients who are incapable of instantiating the inner classes properly.
*/
public WebClient createWebClient() {
return new WebClient();
}
/**
* Extends {@link com.gargoylesoftware.htmlunit.WebClient} and provide convenience methods
* for accessing Hudson.
*/
public class WebClient extends com.gargoylesoftware.htmlunit.WebClient {
private static final long serialVersionUID = 5808915989048338267L;
public WebClient() {
// default is IE6, but this causes 'n.doScroll('left')' to fail in event-debug.js:1907 as HtmlUnit doesn't implement such a method,
// so trying something else, until we discover another problem.
super(BrowserVersion.FIREFOX_2);
// setJavaScriptEnabled(false);
setPageCreator(HudsonPageCreator.INSTANCE);
clients.add(this);
// make ajax calls run as post-action for predictable behaviors that simplify debugging
setAjaxController(new AjaxController() {
private static final long serialVersionUID = -5844060943564822678L;
public boolean processSynchron(HtmlPage page, WebRequestSettings settings, boolean async) {
return false;
}
});
setCssErrorHandler(new ErrorHandler() {
final ErrorHandler defaultHandler = new DefaultCssErrorHandler();
public void warning(CSSParseException exception) throws CSSException {
if (!ignore(exception))
defaultHandler.warning(exception);
}
public void error(CSSParseException exception) throws CSSException {
if (!ignore(exception))
defaultHandler.error(exception);
}
public void fatalError(CSSParseException exception) throws CSSException {
if (!ignore(exception))
defaultHandler.fatalError(exception);
}
private boolean ignore(CSSParseException e) {]]></codefragment>
</duplication>
<duplication lines="35" tokens="192">
<file line="27"
path="/home/jtja234/Desktop/mp3/jenkins/core/src/main/java/jenkins/mvn/FilePathGlobalSettingsProvider.java"/>
<file line="26"
path="/home/jtja234/Desktop/mp3/jenkins/core/src/main/java/jenkins/mvn/FilePathSettingsProvider.java"/>
<codefragment><![CDATA[ public FilePathGlobalSettingsProvider(String path) {
this.path = path;
}
public String getPath() {
return path;
}
@Override
public FilePath supplySettings(AbstractBuild<?, ?> build, TaskListener listener) {
if (StringUtils.isEmpty(path)) {
return null;
}
try {
EnvVars env = build.getEnvironment(listener);
String targetPath = Util.replaceMacro(this.path, build.getBuildVariableResolver());
targetPath = env.expand(targetPath);
if (IOUtils.isAbsolute(targetPath)) {
return new FilePath(new File(targetPath));
} else {
FilePath mrSettings = build.getModuleRoot().child(targetPath);
FilePath wsSettings = build.getWorkspace().child(targetPath);
try {
if (!wsSettings.exists() && mrSettings.exists()) {
wsSettings = mrSettings;
}
} catch (Exception e) {
throw new IllegalStateException("failed to find settings.xml at: " + wsSettings.getRemote());
}
return wsSettings;
}
} catch (Exception e) {
throw new IllegalStateException("failed to prepare global settings.xml");]]></codefragment>
</duplication>
<duplication lines="22" tokens="191">
<file line="82"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="114"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="145"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="176"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<file line="208"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/RunParameterDefinitionTest.java"/>
<codefragment><![CDATA[ public void testNULLFilter() throws Exception {
FreeStyleProject project = j.createFreeStyleProject("project");
FreeStyleBuild successfulBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.UNSTABLE)));
FreeStyleBuild unstableBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.FAILURE)));
FreeStyleBuild failedBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.NOT_BUILT)));
FreeStyleBuild notBuiltBuild = project.scheduleBuild2(0).get();
project.getPublishersList().replaceBy(Collections.singleton(new ResultPublisher(Result.ABORTED)));
FreeStyleBuild abortedBuild = project.scheduleBuild2(0).get();
FreeStyleProject paramProject = j.createFreeStyleProject("paramProject");
ParametersDefinitionProperty pdp =
new ParametersDefinitionProperty(new RunParameterDefinition("RUN",
project.getName(),
"run description",]]></codefragment>
</duplication>
<duplication lines="20" tokens="169">
<file line="99"
path="/home/jtja234/Desktop/mp3/jenkins/core/src/test/java/hudson/scheduler/CronTabTest.java"/>
<file line="121"
path="/home/jtja234/Desktop/mp3/jenkins/core/src/test/java/hudson/scheduler/CronTabTest.java"/>
<codefragment><![CDATA[ final Calendar cal = Calendar.getInstance(new Locale("de", "de"));
cal.set(2011, 0, 16, 0, 0, 0); // Sunday, Jan 16th 2011, 00:00
final String cronStr = "0 23 * * 1-5"; // execute on weekdays @23:00
final CronTab cron = new CronTab(cronStr);
final Calendar next = cron.ceil(cal);
final Calendar expectedDate = Calendar.getInstance();
expectedDate.set(2011, 0, 17, 23, 0, 0); // Expected next: Monday, Jan 17th 2011, 23:00
assertEquals(expectedDate.get(Calendar.HOUR), next.get(Calendar.HOUR));
assertEquals(expectedDate.get(Calendar.MINUTE), next.get(Calendar.MINUTE));
assertEquals(expectedDate.get(Calendar.YEAR), next.get(Calendar.YEAR));
assertEquals(expectedDate.get(Calendar.MONTH), next.get(Calendar.MONTH));
assertEquals(expectedDate.get(Calendar.DAY_OF_MONTH), next.get(Calendar.DAY_OF_MONTH)); // FAILS: is Monday, Jan 10th, 23:00
}
/**
* Verifies that HUDSON-8656 never crops up again.
*/
@Url("http://issues.hudson-ci.org/browse/HUDSON-8656")]]></codefragment>
</duplication>
<duplication lines="39" tokens="161">
<file line="2273"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="2022"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ GNUCLibrary.LIBC.unsetenv("MAVEN_DEBUG_OPTS");
} catch (Exception e) {
LOGGER.log(Level.WARNING,"Failed to cancel out MAVEN_OPTS",e);
}
}
}
public static class TestBuildWrapper extends BuildWrapper {
public Result buildResultInTearDown;
@Override
public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
return new BuildWrapper.Environment() {
@Override
public boolean tearDown(AbstractBuild build, BuildListener listener) throws IOException, InterruptedException {
buildResultInTearDown = build.getResult();
return true;
}
};
}
@Extension
public static class TestBuildWrapperDescriptor extends BuildWrapperDescriptor {
@Override
public boolean isApplicable(AbstractProject<?, ?> project) {
return true;
}
@Override
public BuildWrapper newInstance(StaplerRequest req, JSONObject formData) {
throw new UnsupportedOperationException();
}
@Override
public String getDisplayName() {
return this.getClass().getName();
}
}
}]]></codefragment>
</duplication>
<duplication lines="11" tokens="158">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/core/target/generated-test-sources/groovy-stubs/jenkins/security/CryptoConfidentialKeyTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/core/target/generated-test-sources/groovy-stubs/jenkins/security/HMACConfidentialKeyTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public ConfidentialStoreRule store;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
public java.lang.Object getKey() { return null;}
public void setKey(java.lang.Object value) { }
@org.junit.Test() public void decryptGetsPlainTextBack() { }]]></codefragment>
</duplication>
<duplication lines="34" tokens="156">
<file line="863"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="746"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ }
}
/**
* Returns the URL of the webapp top page.
* URL ends with '/'.
*/
public URL getURL() throws IOException {
return new URL("http://localhost:"+localPort+contextPath+"/");
}
public DumbSlave createSlave(EnvVars env) throws Exception {
return createSlave("",env);
}
public DumbSlave createSlave(Label l, EnvVars env) throws Exception {
return createSlave(l==null ? null : l.getExpression(), env);
}
/**
* Creates a slave with certain additional environment variables
*/
public DumbSlave createSlave(String labels, EnvVars env) throws Exception {
synchronized (jenkins) {
int sz = jenkins.getNodes().size();
return createSlave("slave" + sz,labels,env);
}
}
public DumbSlave createSlave(String nodeName, String labels, EnvVars env) throws Exception {
synchronized (jenkins) {
DumbSlave slave = new DumbSlave(nodeName, "dummy",
createTmpDir().getPath(), "1", Node.Mode.NORMAL, labels==null?"":labels, createComputerLauncher(env), RetentionStrategy.NOOP, Collections.EMPTY_LIST); ]]></codefragment>
</duplication>
<duplication lines="34" tokens="153">
<file line="35"
path="/home/jtja234/Desktop/mp3/jenkins/core/src/main/java/hudson/util/DualOutputStream.java"/>
<file line="36"
path="/home/jtja234/Desktop/mp3/jenkins/core/src/main/java/hudson/util/ForkOutputStream.java"/>
<codefragment><![CDATA[ public DualOutputStream(OutputStream lhs, OutputStream rhs) {
this.lhs = lhs;
this.rhs = rhs;
}
public void write(int b) throws IOException {
lhs.write(b);
rhs.write(b);
}
@Override
public void write(byte[] b) throws IOException {
lhs.write(b);
rhs.write(b);
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
lhs.write(b,off,len);
rhs.write(b,off,len);
}
@Override
public void flush() throws IOException {
lhs.flush();
rhs.flush();
}
@Override
public void close() throws IOException {
lhs.close();
rhs.close();
}
}]]></codefragment>
</duplication>
<duplication lines="9" tokens="151">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/lib/form/ApplyButtonTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/BuildDiscarderTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/widgets/HistoryWidgetTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.JenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@org.junit.Test() @org.jvnet.hudson.test.Issue(value="JENKINS-18436") public void editDescription() { }]]></codefragment>
</duplication>
<duplication lines="30" tokens="150">
<file line="112"
path="/home/jtja234/Desktop/mp3/jenkins/core/target/generated-sources/antlr/hudson/model/labels/LabelExpressionLexer.java"/>
<file line="169"
path="/home/jtja234/Desktop/mp3/jenkins/core/target/generated-sources/antlr/hudson/scheduler/CrontabLexer.java"/>
<codefragment><![CDATA[ mATOM(true);
theRetToken=_returnToken;
}
else {
if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
}
}
if ( _returnToken==null ) continue tryAgain; // found SKIP token
_ttype = _returnToken.getType();
_ttype = testLiteralsTable(_ttype);
_returnToken.setType(_ttype);
return _returnToken;
}
catch (RecognitionException e) {
throw new TokenStreamRecognitionException(e);
}
}
catch (CharStreamException cse) {
if ( cse instanceof CharStreamIOException ) {
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
}
else {
throw new TokenStreamException(cse.getMessage());
}
}
}
}
public final void mAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {]]></codefragment>
</duplication>
<duplication lines="10" tokens="146">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/GroovyTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/EnableJobCommandTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.JenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@org.junit.Test() public void test() { }
}]]></codefragment>
</duplication>
<duplication lines="16" tokens="146">
<file line="1428"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java"/>
<file line="1289"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java"/>
<codefragment><![CDATA[ assertThat(types.length, is(names.length));
for (int i=0; i<types.length; i++) {
Object lv = ReflectionUtils.getPublicProperty(lhs, names[i]);
Object rv = ReflectionUtils.getPublicProperty(rhs, names[i]);
if (Iterable.class.isAssignableFrom(types[i])) {
Iterable lcol = (Iterable) lv;
Iterable rcol = (Iterable) rv;
Iterator ltr,rtr;
for (ltr=lcol.iterator(), rtr=rcol.iterator(); ltr.hasNext() && rtr.hasNext();) {
Object litem = ltr.next();
Object ritem = rtr.next();
if (findDataBoundConstructor(litem.getClass())!=null) {
assertEqualDataBoundBeans(litem,ritem);
} else {]]></codefragment>
</duplication>
<duplication lines="13" tokens="141">
<file line="382"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/UserTest.java"/>
<file line="417"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/model/UserTest.java"/>
<codefragment><![CDATA[ public void testDoConfigSubmit() throws Exception {
GlobalMatrixAuthorizationStrategy auth = new GlobalMatrixAuthorizationStrategy();
j.jenkins.setAuthorizationStrategy(auth);
j.jenkins.setCrumbIssuer(null);
HudsonPrivateSecurityRealm realm = new HudsonPrivateSecurityRealm(false);
j.jenkins.setSecurityRealm(realm);
User user = realm.createAccount("John Smith", "password");
User user2 = realm.createAccount("John Smith2", "password");
user2.save();
auth.add(Jenkins.ADMINISTER, user.getId());
auth.add(Jenkins.READ, user2.getId());
SecurityContextHolder.getContext().setAuthentication(user.impersonate());
HtmlForm form = j.createWebClient().login(user.getId(), "password").goTo(user2.getUrl() + "/configure").getFormByName("config");]]></codefragment>
</duplication>
<duplication lines="9" tokens="140">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/PeepholePermalinkTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/org/jvnet/hudson/test/SleepBuilderTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/EnvironmentContributorTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/AbstractItemTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/GroovyTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/EnableJobCommandTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/SetBuildParameterCommandTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/BuildCommandTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.JenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@org.junit.Test() public void basics() { }]]></codefragment>
</duplication>
<duplication lines="9" tokens="140">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/SlaveTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/AbstractBuildTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.GroovyJenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@org.junit.Test() public void formValidation() { }]]></codefragment>
</duplication>
<duplication lines="14" tokens="139">
<file line="97"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/tasks/MavenTest.java"/>
<file line="126"
path="/home/jtja234/Desktop/mp3/jenkins/test/src/test/java/hudson/tasks/MavenTest.java"/>
<codefragment><![CDATA[ @Test public void withNodeProperty() throws Exception {
MavenInstallation maven = j.configureDefaultMaven();
String mavenHome = maven.getHome();
String mavenHomeVar = "${VAR_MAVEN}" + mavenHome.substring(3);
String mavenVar = mavenHome.substring(0, 3);
MavenInstallation varMaven = new MavenInstallation("varMaven", mavenHomeVar, JenkinsRule.NO_PROPERTIES);
j.jenkins.getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(maven, varMaven);
JDK jdk = j.jenkins.getJDK("default");
String javaHome = jdk.getHome();
String javaHomeVar = "${VAR_JAVA}" + javaHome.substring(3);
String javaVar = javaHome.substring(0, 3);
JDK varJDK = new JDK("varJDK", javaHomeVar);
j.jenkins.getJDKs().add(varJDK);]]></codefragment>
</duplication>
<duplication lines="9" tokens="138">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/lib/form/ApplyButtonTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/BuildDiscarderTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/PeepholePermalinkTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/org/jvnet/hudson/test/SleepBuilderTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/EnvironmentContributorTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/AbstractItemTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/widgets/HistoryWidgetTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/GroovyTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/EnableJobCommandTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/SetBuildParameterCommandTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/BuildCommandTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.JenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@org.junit.Test() @org.jvnet.hudson.test.Issue(value="JENKINS-18436") public void editDescription() { }]]></codefragment>
</duplication>
<duplication lines="9" tokens="135">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/lib/form/ApplyButtonTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/BuildDiscarderTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/PeepholePermalinkTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/org/jvnet/hudson/test/SleepBuilderTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/EnvironmentContributorTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/model/AbstractItemTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/security/TokenBasedRememberMeServices2Test.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/widgets/HistoryWidgetTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/GroovyTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/EnableJobCommandTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/SetBuildParameterCommandTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/BuildCommandTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.JenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@org.junit.Test() @org.jvnet.hudson.test.Issue(value="JENKINS-18436") public void editDescription() { }]]></codefragment>
</duplication>
<duplication lines="9" tokens="134">
<file line="23"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/RelativePathTest.java"/>
<file line="56"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/BuildCommandTest.java"/>
<codefragment><![CDATA[ extends hudson.model.Descriptor<hudson.RelativePathTest> implements
groovy.lang.GroovyObject {
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
@java.lang.Override() public java.lang.String getDisplayName() { return (java.lang.String)null;}
}]]></codefragment>
</duplication>
<duplication lines="9" tokens="131">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/lib/form/TextAreaTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/bugs/Jenkins19124Test.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/hudson/cli/CLIActionTest.java"/>
<codefragment><![CDATA[ extends java.lang.Object implements
groovy.lang.GroovyObject {
@org.junit.Rule() public org.jvnet.hudson.test.JenkinsRule j;
public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
public void setMetaClass(groovy.lang.MetaClass mc) { }
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
public java.lang.Object getProperty(java.lang.String property) { return null;}
public void setProperty(java.lang.String property, java.lang.Object value) { }
public lib.form.TextAreaTest.TestBuilder.DescriptorImpl getD() { return (lib.form.TextAreaTest.TestBuilder.DescriptorImpl)null;}]]></codefragment>
</duplication>
<duplication lines="8" tokens="130">
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/lib/form/TextAreaTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/lib/form/ApplyButtonTest.java"/>
<file line="11"
path="/home/jtja234/Desktop/mp3/jenkins/test/target/generated-test-sources/groovy-stubs/jenkins/model/BuildDiscarderTest.java"/>