Skip to content

Commit e29141f

Browse files
committed
functional: remove case related to static property in interface
It seems that this usage fails for Java generator and its tests. This is not critical for Kotlin generator. It will be handled in a separate ticket. Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
1 parent 731ec58 commit e29141f

3 files changed

Lines changed: 0 additions & 22 deletions

File tree

functional-tests/functional/android-kotlin/src/test/kotlin/com/here/android/test/VisibilityAttributeTest.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,4 @@ class VisibilityAttributeTest {
204204
fun checkInternalStaticProperty() {
205205
assertEquals("foo", InternalAttributeClassWithStaticProperty.getFooBar())
206206
}
207-
208-
@org.junit.Test
209-
fun checkInternalStaticPropertyFromInterface() {
210-
assertEquals("FOO_BAR", InternalAttributeInterfaceParent.getSomePropertyOfInternalInterface())
211-
212-
InternalAttributeInterfaceParent.setSomePropertyOfInternalInterface("abc")
213-
assertEquals("abc", InternalAttributeInterfaceParent.getSomePropertyOfInternalInterface())
214-
}
215207
}

functional-tests/functional/input/lime/VisibilityAttribute.lime

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ interface WithInternalAttributeProperty {
4949
interface InternalAttributeInterfaceParent {
5050
fun fooBar()
5151
property prop: String
52-
53-
static property somePropertyOfInternalInterface: String
5452
}
5553

5654
@Internal

functional-tests/functional/input/src/cpp/VisibilityAttribute.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
namespace test
3333
{
3434

35-
static std::string g_someInternalProperty = "FOO_BAR";
36-
3735
class SomeClassWithInternalMembersImpl : public SomeClassWithInternalMembers {
3836
public:
3937
SomeClassWithInternalMembersImpl() = default;
@@ -210,14 +208,4 @@ void
210208
InternalAttributeClassWithStaticProperty::set_foo_bar(const std::string& value) {
211209
}
212210

213-
std::string
214-
InternalAttributeInterfaceParent::get_some_property_of_internal_interface() {
215-
return g_someInternalProperty;
216-
}
217-
218-
void
219-
InternalAttributeInterfaceParent::set_some_property_of_internal_interface(const std::string& value) {
220-
g_someInternalProperty = value;
221-
}
222-
223211
}

0 commit comments

Comments
 (0)