aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-11 19:15:32 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-11 19:15:32 +0300
commit623b75523fbec13f26b532972a46e75faf149088 (patch)
treece04a52fd058b3017037ecc4a843a39c2a829575 /library/cpp/messagebus/test
parent4f5398551111a2b05b55de391d5d296bd0a670bf (diff)
downloadydb-623b75523fbec13f26b532972a46e75faf149088.tar.gz
intermediate changes
ref:ee911405f4248489c0aa2817134b7162e0b94f18
Diffstat (limited to 'library/cpp/messagebus/test')
-rw-r--r--library/cpp/messagebus/test/ut/www_ut.cpp19
-rw-r--r--library/cpp/messagebus/test/ut/ya.make2
2 files changed, 21 insertions, 0 deletions
diff --git a/library/cpp/messagebus/test/ut/www_ut.cpp b/library/cpp/messagebus/test/ut/www_ut.cpp
new file mode 100644
index 0000000000..181984db47
--- /dev/null
+++ b/library/cpp/messagebus/test/ut/www_ut.cpp
@@ -0,0 +1,19 @@
+#include <library/cpp/testing/unittest/registar.h>
+#include <library/cpp/resource/resource.h>
+
+Y_UNIT_TEST_SUITE(Www) {
+ Y_UNIT_TEST(messagebus_js) {
+ auto str = NResource::Find("/messagebus.js");
+ UNIT_ASSERT(str.Contains("logTransform"));
+ UNIT_ASSERT(str.Contains("plotHist"));
+ }
+
+ Y_UNIT_TEST(busico_png) {
+ auto str = NResource::Find("/bus-ico.png");
+ UNIT_ASSERT(str.Contains("PNG")); //header
+ }
+
+ Y_UNIT_TEST(not_exist) {
+ UNIT_ASSERT_EXCEPTION(NResource::Find("/not_exist"), yexception);
+ }
+}
diff --git a/library/cpp/messagebus/test/ut/ya.make b/library/cpp/messagebus/test/ut/ya.make
index fe1b4961d6..bf15564d95 100644
--- a/library/cpp/messagebus/test/ut/ya.make
+++ b/library/cpp/messagebus/test/ut/ya.make
@@ -18,6 +18,7 @@ PEERDIR(
library/cpp/messagebus
library/cpp/messagebus/test/helper
library/cpp/messagebus/www
+ library/cpp/resource
)
SRCS(
@@ -29,6 +30,7 @@ SRCS(
starter_ut.cpp
sync_client_ut.cpp
locator_uniq_ut.cpp
+ www_ut.cpp
../../actor/actor_ut.cpp
../../actor/ring_buffer_ut.cpp
../../actor/tasks_ut.cpp