Homework Solution: Violet UML Editor Core Framework- NetBeans IDE 8.2 File Edit View Navigate Source Refa…

    Violet UML Editor Core Framework- NetBeans IDE 8.2 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help a Search (Ctrl+) <defauit config> Projects×| Files Services ×|업 PrefixDecoratorTest.javax Start Page Source History 15ublic class PrefixDecoratorTest 16 17 - Violet UML Edtor Core Framework a Source Packages eTest Packages com.horstmenn.violet.framework.graphics.content com.horstmann.vioet.product.diagram. abstracts.property.str| Test public void testsetPrefix) throws Exception Ecom.horstmann.violet.product.diagram.abstracts.property.s BoldDecoratorTest.java 画1talcsDecoratorTest.java pref1xDecorator prefixDecorator new prefixDecorator (new OneLineText (test), XYZ); assertEquals(xyz test, prefixDecorator.toDisplay)): assertEquals(test, prefixDecorator.toEdit)) assertEquais(test prefixDecorator.tostring ) 21 LargeSizeDecoratorTest.java OneLineStringDecoratorTest.java OneLineStringTest.java PrefiDecoratorTest.java 23 24 25 26 27 28 atorTest.java ReplaceSentenceDecoratorTest.java SmalSizeDecoratorTest.java Test public void testToDisplay () throws Exception 画UnderlineDecoratorTest.java Other Sources PrefixDecorator prefixDecoratornew PrefixDecorator (new OneLineText (test), <prefix>) assertEquais( prefix> test, prefixDecorator.toDisplay)) 30 31 32 Project Site Project Fies B- b violet UML Edtor Parent Maven Project testSetPrefix - Navigator X BPrefixDecoratorTest O testSetPrefix0 testToDisplay0 com horstmann voet product dagram abstracts property string decorator. rendecoratorTest > 参test et refix Test ResultsOutput- Test (Violet UML Editor Parent Maven Project com.horstmann.violet:violet-framework:jar:2.5.3 X ,申@ com horstmann violet.framework graphics content TextContentTest passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.BoldDecoratorTest passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.ItalicsDecoratorTest passed com.horstma.violet.product.diagram.abstracts.property.string.decorator.LargeSizeDecoratorTest passed com.horstman.violet.product.diagram.abstracts.property.string.decorator.OnelineStringDecoratorTest pasoed 申@ com.horstman.violet.product.diagram.abstracts.property.string.decorator.OneLineStringTest passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.PrefixDecoratorTest Failed 申 com hors mann i let roduct dagram abstracts property sting decorator PrefinDecoratorTest testToDspay Faled: expected:CO<prefix> test> but was:C 由A com. ostmann. oletproduct.dagram abstracts propert strng decorator PrefiaDecoratorTest test e Prefix Failed: expected:<0 YZ test» b twas:< XYZ com.horstmann.violet.product.dagram.abstracts.property string.decorator com.horstmann.violet.product.diagram.abstracts.property.string.decorator ReplaceSentenceDecoratorTest passed oratorTest passed 由 O com.horstmann.violet.product.diagram.abstracts.property.strng.decorator.SmalSizeDecoratorTest passed 申@ com.horstmam.violet.product.diagram.abstracts.property.stringdecorator.UnderlineDecoratorTest passed 21:1 INS 9:56 PM Type here to search 2017-09-10Attempting to debug this program. These 2 errors keep showing up the src code is: violetumleditor-master you can find it on github
    Violet UML Editor Core Framework- NetBeans IDE 8.2 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help a Search (Ctrl+) Projects×| Files Services ×|업 PrefixDecoratorTest.javax Start Page Source History 15ublic class PrefixDecoratorTest 16 17 - Violet UML Edtor Core Framework a Source Packages eTest Packages com.horstmenn.violet.framework.graphics.content com.horstmann.vioet.product.diagram. abstracts.property.str| Test public void testsetPrefix) throws Exception Ecom.horstmann.violet.product.diagram.abstracts.property.s BoldDecoratorTest.java 画1talcsDecoratorTest.java pref1xDecorator prefixDecorator new prefixDecorator (new OneLineText ("test"), "XYZ"); assertEquals("xyz test", prefixDecorator.toDisplay)): assertEquals("test", prefixDecorator.toEdit)) assertEquais("test" prefixDecorator.tostring ) 21 LargeSizeDecoratorTest.java OneLineStringDecoratorTest.java OneLineStringTest.java PrefiDecoratorTest.java 23 24 25 26 27 28 atorTest.java ReplaceSentenceDecoratorTest.java SmalSizeDecoratorTest.java Test public void testToDisplay () throws Exception 画UnderlineDecoratorTest.java Other Sources PrefixDecorator prefixDecoratornew PrefixDecorator (new OneLineText ("test")," ") assertEquais(" prefix> test", prefixDecorator.toDisplay)) 30 31 32 Project Site Project Fies B- b violet UML Edtor Parent Maven Project testSetPrefix - Navigator X BPrefixDecoratorTest O testSetPrefix0 testToDisplay0 com horstmann voet product dagram abstracts property string decorator. rendecoratorTest > 参test et refix Test ResultsOutput- Test (Violet UML Editor Parent Maven Project com.horstmann.violet:violet-framework:jar:2.5.3 X ,申@ com horstmann violet.framework graphics content TextContentTest passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.BoldDecoratorTest passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.ItalicsDecoratorTest passed com.horstma.violet.product.diagram.abstracts.property.string.decorator.LargeSizeDecoratorTest passed com.horstman.violet.product.diagram.abstracts.property.string.decorator.OnelineStringDecoratorTest pasoed 申@ com.horstman.violet.product.diagram.abstracts.property.string.decorator.OneLineStringTest passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.PrefixDecoratorTest Failed 申 com hors mann i let roduct dagram abstracts property sting decorator PrefinDecoratorTest testToDspay Faled: expected:CO test> but was:C 由A com. ostmann. oletproduct.dagram abstracts propert strng decorator PrefiaDecoratorTest test e Prefix Failed: expected:

    Expert Answer

     
    Problem is in this extra leading white space in return statement of PrefixDecorator.getPrefixToDisplay

    Vioallow UML Editor Core Framework- NetBeans IDE 8.2 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help a Inquiry (Ctrl+) <defauit config> Projects×| Files Services ×|업 PrefaceDecoratorTest.javax Start Page Source History 15ublic rank PrefaceDecoratorTrial 16 17 - Vioallow UML Edtor Core Framework a Source Packages eTrial Packages com.horstmenn.violet.framework.graphics.gratified com.horstmann.vioet.product.diagram. abstracts.property.str| Trial general vacant trialsetPrefix) throws Exception Ecom.horstmann.violet.product.diagram.abstracts.property.s BoldDecoratorTest.java 画1talcsDecoratorTest.java pref1xDecorator prefaceDecorator strange prefaceDecorator (strange OneLineText (test), XYZ); assertEquals(xyz trial, prefaceDecorator.toDisplay)): assertEquals(test, prefaceDecorator.toEdit)) assertEquais(trial prefaceDecorator.tostring ) 21 LargeSizeDecoratorTest.java OneLineStringDecoratorTest.java OneLineStringTest.java PrefiDecoratorTest.java 23 24 25 26 27 28 atorTest.java ReplaceSentenceDecoratorTest.java SmalSizeDecoratorTest.java Trial general vacant trialToEvidence () throws Exception 画UnderlineDecoratorTest.java Other Sources PrefaceDecorator prefaceDecoratorstrange PrefaceDecorator (strange OneLineText (test), <prefix>) assertEquais( preface> trial, prefaceDecorator.toDisplay)) 30 31 32 Project Site Project Fies B- b vioallow UML Edtor Parent Maven Project trialSetPebb - Navigator X BPrefixDecoratorTrial O trialSetPrefix0 trialToDisplay0 com horstmann voet emanation dagram abstracts wealth string decorator. rendecoratorTrial > 参trial et ebb Trial ResultsOutput- Trial (Vioallow UML Editor Parent Maven Project com.horstmann.violet:violet-framework:jar:2.5.3 X ,申@ com horstmann violet.framework graphics gratified TextContentTrial passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.BoldDecoratorTrial passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.ItalicsDecoratorTrial passed com.horstma.violet.product.diagram.abstracts.property.string.decorator.LargeSizeDecoratorTrial passed com.horstman.violet.product.diagram.abstracts.property.string.decorator.OnelineStringDecoratorTrial pasoed 申@ com.horstman.violet.product.diagram.abstracts.property.string.decorator.OneLineStringTrial passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.PrefixDecoratorTrial Failed 申 com hors mann i allow roduct dagram abstracts wealth gall decorator PrefinDecoratorTrial trialToDspay Faled: expected:CO<prefix> trial> excepting was:C 由A com. ostmann. oletproduct.dagram abstracts propert strng decorator PrefiaDecoratorTrial trial e Pebb Failed: expected:<0 YZ trial» b twas:< XYZ com.horstmann.violet.product.dagram.abstracts.wealth string.decorator com.horstmann.violet.product.diagram.abstracts.property.string.decorator ReplaceSentenceDecoratorTrial passed oratorTrial passed 由 O com.horstmann.violet.product.diagram.abstracts.property.strng.decorator.SmalSizeDecoratorTrial passed 申@ com.horstmam.violet.product.diagram.abstracts.property.stringdecorator.UnderlineDecoratorTrial passed 21:1 INS 9:56 PM Type here to inquiry 2017-09-10Attempting to debug this program. These 2 errors retain showing up
    the src regulation is: violetumleditor-master
    you can ascertain it on github

    Vioallow UML Editor Core Framework- NetBeans IDE 8.2 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help a Inquiry (Ctrl+) Projects×| Files Services ×|업 PrefaceDecoratorTest.javax Start Page Source History 15ublic rank PrefaceDecoratorTrial 16 17 – Vioallow UML Edtor Core Framework a Source Packages eTrial Packages com.horstmenn.violet.framework.graphics.gratified com.horstmann.vioet.product.diagram. abstracts.property.str| Trial general vacant trialsetPrefix) throws Exception Ecom.horstmann.violet.product.diagram.abstracts.property.s BoldDecoratorTest.java 画1talcsDecoratorTest.java pref1xDecorator prefaceDecorator strange prefaceDecorator (strange OneLineText (“test”), “XYZ”); assertEquals(“xyz trial”, prefaceDecorator.toDisplay)): assertEquals(“test”, prefaceDecorator.toEdit)) assertEquais(“test” prefaceDecorator.tostring ) 21 LargeSizeDecoratorTest.java OneLineStringDecoratorTest.java OneLineStringTest.java PrefiDecoratorTest.java 23 24 25 26 27 28 atorTest.java ReplaceSentenceDecoratorTest.java SmalSizeDecoratorTest.java Trial general vacant trialToEvidence () throws Exception 画UnderlineDecoratorTest.java Other Sources PrefaceDecorator prefaceDecoratorstrange PrefaceDecorator (strange OneLineText (“test”),” “) assertEquais(” preface> trial”, prefaceDecorator.toDisplay)) 30 31 32 Project Site Project Fies B- b vioallow UML Edtor Parent Maven Project trialSetPebb – Navigator X BPrefixDecoratorTrial O trialSetPrefix0 trialToDisplay0 com horstmann voet emanation dagram abstracts wealth string decorator. rendecoratorTrial > 参trial et ebb Trial ResultsOutput- Trial (Vioallow UML Editor Parent Maven Project com.horstmann.violet:violet-framework:jar:2.5.3 X ,申@ com horstmann violet.framework graphics gratified TextContentTrial passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.BoldDecoratorTrial passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.ItalicsDecoratorTrial passed com.horstma.violet.product.diagram.abstracts.property.string.decorator.LargeSizeDecoratorTrial passed com.horstman.violet.product.diagram.abstracts.property.string.decorator.OnelineStringDecoratorTrial pasoed 申@ com.horstman.violet.product.diagram.abstracts.property.string.decorator.OneLineStringTrial passed com.horstmann.violet.product.diagram.abstracts.property.string.decorator.PrefixDecoratorTrial Failed 申 com hors mann i allow roduct dagram abstracts wealth gall decorator PrefinDecoratorTrial trialToDspay Faled: expected:CO trial> excepting was:C 由A com. ostmann. oletproduct.dagram abstracts propert strng decorator PrefiaDecoratorTrial trial e Pebb Failed: expected:

    Expert Defense

     

    Problem is in this extra qualitative pure measure in retaliate assertion of PrefaceDecorator.getPrefixToDisplay

    /**
    * Allows to evidence pebb barely if string to evidence is referable empty
    *
    * @retaliate string
    */
    private String getPrefixToDisplay() {
    if (isStringToDisplayEmpty()) {
    retaliate “”;
    }
    return ” ” + this.pebb + ” “;
    }