CheckBulletStyle.java (323ac9c5) CheckBulletStyle.java (28725c19)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 53 unchanged lines hidden (view full) ---

62 private String m_filePath = null;
63// private XShape m_xsecondTextBox = null;
64 Object m_numberingRules = null;
65 XPropertySet m_textProperty = null;
66 XIndexReplace m_xReplace = null;
67
68 @Before
69 public void setUpDocument() throws Exception {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 53 unchanged lines hidden (view full) ---

62 private String m_filePath = null;
63// private XShape m_xsecondTextBox = null;
64 Object m_numberingRules = null;
65 XPropertySet m_textProperty = null;
66 XIndexReplace m_xReplace = null;
67
68 @Before
69 public void setUpDocument() throws Exception {
70 m_filePath = Testspace.getPath("temp/CheckBulletStyle.odt");
70 m_filePath = Testspace.getPath("temp/CheckBulletStyle.odp");
71 if(FileUtil.fileExists(m_filePath))
72 { //load
73 m_xReplace = load();
74 }
75 else{
76 //create a sd
77 m_xSDComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, app.newDocument("simpress"));
78 Object firstPage = getDrawPageByIndex(m_xSDComponent, 0);

--- 32 unchanged lines hidden (view full) ---

111 XIndexReplace xReplace = (XIndexReplace) UnoRuntime.queryInterface(
112 XIndexReplace.class, m_numberingRules);
113 return xReplace;
114 }
115
116 @After
117 public void tearDownDocument() {
118 app.closeDocument(m_xSDComponent);
71 if(FileUtil.fileExists(m_filePath))
72 { //load
73 m_xReplace = load();
74 }
75 else{
76 //create a sd
77 m_xSDComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, app.newDocument("simpress"));
78 Object firstPage = getDrawPageByIndex(m_xSDComponent, 0);

--- 32 unchanged lines hidden (view full) ---

111 XIndexReplace xReplace = (XIndexReplace) UnoRuntime.queryInterface(
112 XIndexReplace.class, m_numberingRules);
113 return xReplace;
114 }
115
116 @After
117 public void tearDownDocument() {
118 app.closeDocument(m_xSDComponent);
119
120 //remove the temp file
121 FileUtil.deleteFile(Testspace.getPath("temp"));
119 }
120
121 @BeforeClass
122 public static void setUpConnection() throws Exception {
123 app.start();
124 }
125
126 @AfterClass
127 public static void tearDownConnection() throws InterruptedException,
128 Exception {
129 app.close();
122 }
123
124 @BeforeClass
125 public static void setUpConnection() throws Exception {
126 app.start();
127 }
128
129 @AfterClass
130 public static void tearDownConnection() throws InterruptedException,
131 Exception {
132 app.close();
130 //remove the temp file
131 FileUtil.deleteFile(Testspace.getPath("temp"));
133
132 }
133
134 @Test
135 public void testBulletColor() throws Exception {
136 //BulletColor, Integer
137 PropertyValue[] props = new PropertyValue[1];
138 props[0] = new PropertyValue();
139 props[0].Name = "BulletColor";

--- 34 unchanged lines hidden ---
134 }
135
136 @Test
137 public void testBulletColor() throws Exception {
138 //BulletColor, Integer
139 PropertyValue[] props = new PropertyValue[1];
140 props[0] = new PropertyValue();
141 props[0].Name = "BulletColor";

--- 34 unchanged lines hidden ---