This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 251287
Collapse All | Expand All

(-)subversion/test/unit/src/org/netbeans/modules/subversion/client/commands/PropertyTestHidden.java (+27 lines)
Lines 480-486 Link Here
480
        assertPropertyStatus(SVNStatusKind.MODIFIED, file1);        
480
        assertPropertyStatus(SVNStatusKind.MODIFIED, file1);        
481
        assertNotifiedFiles(folder);
481
        assertNotifiedFiles(folder);
482
    }
482
    }
483
    
484
    public void testKWPropertySet () throws Exception {                                                
485
        File folder = createFolder("folder");        
486
        File file1 = createFile(folder, "file1");        
487
        
488
        add(folder);
489
        add(file1);
490
        commit(getWC());
483
491
492
        ISVNClientAdapter c = getNbClient();        
493
        c.propertySet(file1, "svn:keywords", "Id", false);
494
        assertNotifiedFiles(file1);
495
        
496
        assertPropertyStatus(SVNStatusKind.MODIFIED, file1);
497
        
498
        // add property for new file
499
        File file2 = createFile(folder, "file2");
500
        assertStatus(SVNStatusKind.UNVERSIONED, file2);
501
        c.addFile(file2);
502
        assertStatus(SVNStatusKind.ADDED, file2);
503
        
504
        c.propertySet(file2, "svn:keywords", "Id", false);
505
        assertNotifiedFiles(file2);
506
        
507
        assertPropertyStatus(SVNStatusKind.MODIFIED, file2);
508
        
509
    }
510
484
    private void assertProperty(String name, String value, Map<String, ISVNProperty> propMap) {
511
    private void assertProperty(String name, String value, Map<String, ISVNProperty> propMap) {
485
        ISVNProperty p = propMap.get(name);
512
        ISVNProperty p = propMap.get(name);
486
        assertNotNull(p);
513
        assertNotNull(p);

Return to bug 251287