@@ -0,0 +1,1288 @@
+import java.swing.JTextPane;%0Aimport java.awt.Font;%0Aimport java.swing.text.SimpleAttributeSet;%0A%0Apublic class BbCodeTest %7B%0A%0A    @BeforeMethod%0A    @Parameters(%7B%22appUrl%22%7D)%0A    public void setupCase(String appUrl) throws ValidationException %7B%0A        driver.get(appUrl);%0A        mainPage.logOutIfLoggedIn(driver);%0A    %7D%0A%0A    @Test /*test for an only creating topic with a %5Bb%5Dmessage%5B/b%5D, without any checking bold text or not*/%0A    public void boldBbCodeSingleExpressionNewTopic_ShouldPass_QA_7() throws Exception %7B%0A        Users.signUpAndSignIn();%0A        Topic topic = new Topic(%22subject%22,%22%5Bb%5D%22 + %22message%22 + %22%5B/b%5D%22);%0A        Topic createdTopic = Topics.createTopic(topic);%0A        Assert.assertTrue(Topics.isCreated(createdTopic));%0A    %7D%0A%0A    @Test(enabled = false, expectedExceptions = ValidationException.class,%0A            expectedExceptionsMessageRegExp = TopicPage.EMPTY_BODY_ERROR) /*I have had some troubles with finding an exceptions so I leaved test as if, and a big question where should I create an exception here or in another file?*/%0A    private void noTextIsideBoldBbCodeSingleExpressionNewTopic_ShouldFail_QA_26() throws Exception %7B%0A        Users.signUpAndSignIn();%0A        Topic topic = new Topic(%22subject%22, %22%5Bb%5D%22 + %22%22 + %22%5B/b%5D%22);%0A        Topics.createTopic(topic);%0A    %7D%0A%0A%7D%0A

Create an BbCodeTest