blob: fb82b8fed76c333a7cfbb1b99705474a0cf4aaac [file] [log] [blame]
Beverly301084f2017-07-10 11:34:40 -04001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package com.android.systemui.volume;
17
18import android.media.MediaMetadata;
Brett Chabot84151d92019-02-27 15:37:59 -080019
20import androidx.test.filters.SmallTest;
Beverly301084f2017-07-10 11:34:40 -040021
22import com.android.systemui.SysuiTestCase;
23
24import junit.framework.Assert;
25
26import org.junit.Test;
27
28@SmallTest
29public class UtilTest extends SysuiTestCase {
30
31 @Test
32 public void testMediaMetadataToString_null() {
33 Assert.assertEquals(null, Util.mediaMetadataToString(null));
34 }
35
36 @Test
37 public void testMediaMetadataToString_notNull() {
38 Assert.assertNotNull(Util.mediaMetadataToString(new MediaMetadata.Builder().build()));
39 }
40}