Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NoteTest.java « model « notes « owncloud « niedermann « it « java « androidTest « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7e9d14cfd3cc2e4271147495a4247147a27cebb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package it.niedermann.owncloud.notes.model;

import junit.framework.TestCase;

import java.util.Calendar;

/**
 * Tests the Note Model
 * Created by stefan on 06.10.15.
 */
public class NoteTest extends TestCase {

    public void testMarkDownStrip() {
        CloudNote note = new CloudNote(0, Calendar.getInstance(), "#Title", "", false);
        assertTrue("Title".equals(note.getTitle()));
        note.setTitle("* Aufzählung");
        assertTrue("Aufzählung".equals(note.getTitle()));
    }
}