This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(JUnit4.class) | |
public class ModelTests { | |
@Test | |
public void verifyJsonConvertsToModel() throws Exception { | |
String sampleMovieJson = "{\"adult\":false,\"backdrop_path\":\"/lubzBMQLLmG88CLQ4F3TxZr2Q7N.jpg\",\"belongs_to_collection\":{\"id\":427084,\"name\":\"The Secret Life of Pets Collection\",\"poster_path\":\"/aDNbXvuRiuYxk8qCwXNQQ7UEHau.jpg\",\"backdrop_path\":null},\"budget\":75000000,\"genres\":[{\"id\":12,\"name\":\"Adventure\"},{\"id\":16,\"name\":\"Animation\"},{\"id\":35,\"name\":\"Comedy\"},{\"id\":10751,\"name\":\"Family\"}],\"homepage\":\"http://www.thesecretlifeofpets.com/\",\"id\":328111,\"imdb_id\":\"tt2709768\",\"original_language\":\"en\",\"original_title\":\"The Secret Life of Pets\",\"overview\":\"The quiet life of a terrier named Max is upended when his owner takes in Duke, a stray whom Max instantly dislikes.\",\"popularity\":129.924005,\"poster_path\":\"/WLQN5aiQG8wc9SeKwixW7pAR8K.jpg\",\"production_companies\":[{\"name\":\"Universal Pictures\",\"id\":33},{\"name\": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-03-04 11:27:35,480 [P1052/D2/T8] ERROR Umbraco.Web.Editors.EntityController - Unhandled controller exception occurred | |
System.InvalidOperationException: Node has no ID attribute. | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.Get(XmlNode node, Boolean isPreviewing) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetSingleByXPath(UmbracoContext umbracoContext, Boolean preview, String xpath, XPathVariable[] vars) | |
at Umbraco.Web.PublishedCache.ContextualPublishedCache`1.GetSingleByXPath(Boolean preview, String xpath, XPathVariable[] vars) | |
at Umbraco.Web.Editors.EntityController.GetByQuery(String query, Int32 nodeContextId, UmbracoEntityTypes type) | |
at lambda_method(Closure , Object , Object[] ) | |
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) | |
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instanc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-03-08 16:36:06,764 [P9180/D2/T15] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred | |
System.NullReferenceException: Object reference not set to an instance of an object. | |
at Umbraco.Core.Cache.HttpRequestCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.Get(XmlNode node, Boolean isPreviewing) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.DetermineIdByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Boolean hideTopLevelNode) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Nullable`1 hideTopLevelNode) | |
at Umbraco.Web.Routing.ContentFinderByNiceUrl.FindContent(PublishedContentRequest docreq, String route) | |
at U |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failed to build models. | |
Object reference not set to an instance of an object. | |
at Our.Umbraco.SuperValueConverters.ValueConverters.BaseValueConverter.<>c.<GetTypeForPicker>b__3_0(Type x) | |
at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x) | |
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() | |
at Our.Umbraco.SuperValueConverters.Extensions.IEnumerableExtensions.IntersectMany[T](IEnumerable`1 values) | |
at Our.Umbraco.SuperValueConverters.ValueConverters.BaseValueConverter.GetTypeForPicker(IPickerSettings pickerSettings) | |
at Our.Umbraco.SuperValueConverters.ValueConverters.BaseValueConverter.GetPropertyValueType(PublishedPropertyType propertyType, IPickerSettings pickerSettings) | |
at Our.Umbraco.SuperValueConverters.ValueConverters.MultiNodeTreePickerValueConverter.GetPropertyValueType(PublishedPropertyType propertyType) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An error occured | |
Mapping types: | |
Content -> String[] | |
Umbraco.Core.Models.Content -> System.String[] | |
Destination path: | |
ContentItemDisplay.Urls.Urls | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] | |
Umbraco.Core.Cache.HttpRequestCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem) +288 | |
Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.Get(XmlNode node, Boolean isPreviewing) +155 | |
Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId) +68 | |
Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.DetermineIdByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Boolean hideTopLevelNode) +189 | |
Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Nullable`1 hideTopLevelNode) +202 | |
Umbraco.Web.Routing.ContentFinderByNiceUrl.FindContent(PublishedContentRequest docreq, String route) +207 | |
Umbraco.Web.Routing.ContentFinderByNiceUrl.TryFind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-10-08 10:52:29,939 [P8668/D4/T17] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred | |
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. | |
at Umbraco.Core.Cache.HttpRequestCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.Get(XmlNode node, Boolean isPreviewing) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.DetermineIdByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Boolean hideTopLevelNode) | |
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Nullable`1 hideTopLevelNode) | |
at Umbraco.Web.Routing.ContentFinderB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failed to build models. | |
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. | |
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) | |
at System.Reflection.RuntimeModule.GetTypes() | |
at System.Reflection.Assembly.GetTypes() | |
at Our.Umbraco.SuperValueConverters.Helpers.TypeHelper.<>c.<GetType>b__0_0(Assembly x) | |
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext() | |
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() | |
at Our.Umbraco.SuperValueConverters.Helpers.TypeHelper.GetType(String typeName, String namespaceName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UCommerce.EntitiesV2; | |
using Xunit.Abstractions; | |
namespace Website.Tests | |
{ | |
public class TestBase : XunitApprovalBase | |
{ | |
protected TestBase(ITestOutputHelper output) | |
: base(output) | |
{ |
OlderNewer