input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testEnsureValidMask ( ) { final org . esa . beam . framework . datamodel . Product product = new org . esa . beam . framework . datamodel . Product ( "n" , "t" , 18 , 2 ) ; final org . esa . beam . framework . datamodel . Band flagsBand = product . addBand ( "flags" , ProductData . TYPE_INT8 ) ; final org . esa . beam ...
org . junit . Assert . assertEquals ( ( ( elems [ i ] ) == 1 ) , validMask . isSet ( i ) )
testEmptyPackageWithMalformedXML ( ) { java . nio . file . Path directory = com . facebook . buck . testutil . integration . TestDataHelper . getTestDataDirectory ( this ) ; java . nio . file . Path androidManifestPath = directory . resolve ( "manifests/manifest_with_malformed_xml/AndroidManifest.xml" ) ; java . util ....
org . junit . Assert . assertFalse ( packageName . isPresent ( ) )
testSerialization ( ) { float [ ] [ ] data = createData ( ) ; org . jfree . chart . axis . ValueAxis domainAxis = new org . jfree . chart . axis . NumberAxis ( "X" ) ; org . jfree . chart . axis . ValueAxis rangeAxis = new org . jfree . chart . axis . NumberAxis ( "Y" ) ; org . jfree . chart . plot . FastScatterPlot p1...
org . junit . Assert . assertEquals ( p1 , p2 )
testSetSchedulingOptionsWithOptions ( ) { initializeExpectedInstance ( 2 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . compute . deprecated . Operation operation = new com . google . cloud . compute . deprecated . Operation . Builder ( serviceMockReturnsOptions ) . setOper...
org . junit . Assert . assertSame ( operation , instance . setSchedulingOptions ( schedulingOptions , Compute . OperationOption . fields ( ) ) )
testJmxCalls ( ) { mBeanServerRegistry . register ( "java" , java . lang . management . ManagementFactory . getPlatformMBeanServer ( ) , null ) ; java . lang . Object obj = execute ( "zorka.jmx(\"java\",\"java.lang:type=Runtime\",\"SpecVersion\")" , 1000 ) ; "<AssertPlaceHolder>" ; } execute ( java . lang . String , lo...
org . junit . Assert . assertTrue ( ( obj instanceof java . lang . String ) )
testCreateClientWithTwoUserResources ( ) { org . apache . cxf . jaxrs . client . JAXRSClientFactoryBean bean = new org . apache . cxf . jaxrs . client . JAXRSClientFactoryBean ( ) ; bean . setAddress ( "http://bar" ) ; org . apache . cxf . jaxrs . model . UserResource r1 = new org . apache . cxf . jaxrs . model . UserR...
org . junit . Assert . assertTrue ( ( ( bean . create ( ) ) instanceof org . apache . cxf . jaxrs . resources . Book ) )
collectLongOverOptimizeLimit ( ) { java . util . ArrayList < java . lang . Integer > list = new java . util . ArrayList ( org . eclipse . collections . impl . list . Interval . zeroTo ( org . eclipse . collections . impl . utility . ArrayListIterateTest . OVER_OPTIMIZED_LIMIT ) ) ; org . eclipse . collections . api . l...
org . junit . Assert . assertEquals ( expected , actual )
dispatchLocalSync ( ) { org . ebayopensource . turmeric . runtime . sif . service . Service service = org . ebayopensource . turmeric . runtime . sif . service . ServiceFactory . create ( "Test1Service" , "localAsync" , serverUri . toURL ( ) ) ; java . lang . String outMessage = ( ( java . lang . String ) ( service . c...
org . junit . Assert . assertEquals ( ECHO_STRING , outMessage )
testValidateInvalid ( ) { java . util . List < java . lang . Exception > exceptions = handler . validate ( "abcde" , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { if ( ( featureCache ) != null ) { return featureCache . size ( ) ; } if ( ( org . geoserver . wfs . FeatureSizeFeatureCollection . FEATURE_CACHE_LIMIT...
org . junit . Assert . assertEquals ( 1 , exceptions . size ( ) )
getterForRootCertificatesSecondaryInfoSucceed ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . X509Certificates , tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . X509CertificateWithInfo , tests . unit . com . microsoft . azure . sdk . iot ...
org . junit . Assert . assertEquals ( mockedX509CertificateInfo , x509Attestation . getSecondaryX509CertificateInfo ( ) )
testAdd ( ) { mikera . vectorz . nativeimpl . BlasMatrix m = mikera . vectorz . nativeimpl . BlasMatrix . create ( mikera . matrixx . Matrix22 . create ( 1 , 2 , 3 , 4 ) ) ; mikera . matrixx . AMatrix m2 = m . clone ( ) ; m2 . add ( m ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( m2 , mikera . matrixx . Matrix22 . create ( 2 , 4 , 6 , 8 ) )
testGetRequestContext ( ) { org . apache . ambari . server . actionmanager . Stage stage = stageFactory . createNew ( 1 , "/logDir" , "c1" , 1L , "My<sp>Context" , "" , "" ) ; "<AssertPlaceHolder>" ; } getRequestContext ( ) { return requestContext ; }
org . junit . Assert . assertEquals ( "My<sp>Context" , stage . getRequestContext ( ) )
findElementsOneBy ( ) { final org . openqa . selenium . support . pagefactory . ByAllTest . AllDriver driver = mock ( org . openqa . selenium . support . pagefactory . ByAllTest . AllDriver . class ) ; final org . openqa . selenium . WebElement elem1 = mock ( org . openqa . selenium . WebElement . class , "webElement1"...
org . junit . Assert . assertThat ( by . findElements ( driver ) , org . hamcrest . Matchers . equalTo ( elems12 ) )
testStronglyConnectedComponentsStream ( ) { org . neo4j . graphdb . Result result = org . neo4j . graphalgo . algo . EmptyGraphIntegrationTest . db . execute ( ( ( "CALL<sp>algo.scc.stream('',<sp>'',{graph:'" + ( graphImpl ) ) + "'})" ) ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( offset ) < ( nodeCount ) ; }
org . junit . Assert . assertFalse ( result . hasNext ( ) )
shouldWorkWithNestedFields ( ) { com . github . dozermapper . core . functional_tests . IsAccessibleTest . Node child = new com . github . dozermapper . core . functional_tests . IsAccessibleTest . Node ( null ) ; com . github . dozermapper . core . functional_tests . IsAccessibleTest . Node root = new com . github . d...
org . junit . Assert . assertEquals ( "a" , root . child . child . value )
testFindPolygons ( ) { java . util . List < com . vividsolutions . jts . geom . Geometry > geoms = new java . util . ArrayList ( ) ; geoms . add ( createPolygon ( ) ) ; geoms . add ( createPoint ( ) ) ; geoms . add ( createMultiLineString ( ) ) ; geoms . add ( createPolygon ( ) ) ; geoms . add ( createMultiPolygon ( ) ...
org . junit . Assert . assertEquals ( 3 , list . size ( ) )
testRoleAFailAuthorized ( ) { "<AssertPlaceHolder>" ; securedEjb . roleA ( ) ; }
org . junit . Assert . assertNotNull ( securedEjb )
shouldReturnRequestPolicyChain_onRequest ( ) { io . gravitee . gateway . security . core . AuthenticationHandler securityProvider = mock ( io . gravitee . gateway . security . core . AuthenticationHandler . class ) ; when ( securityProvider . name ( ) ) . thenReturn ( "my-provider" ) ; when ( securityProvider . handle ...
org . junit . Assert . assertEquals ( io . gravitee . gateway . policy . impl . RequestPolicyChain . class , policyChain . getClass ( ) )
testGetFieldValue_RelationSource ( ) { com . archimatetool . model . IArchimateRelationship relation = IArchimateFactory . eINSTANCE . createServingRelationship ( ) ; com . archimatetool . model . IArtifact source = IArchimateFactory . eINSTANCE . createArtifact ( ) ; source . setName ( "source" ) ; relation . setSourc...
org . junit . Assert . assertEquals ( "source" , o )
toVOPricedEvent_List ( ) { java . util . List < org . oscm . domobjects . PricedEvent > events = new java . util . ArrayList < org . oscm . domobjects . PricedEvent > ( ) ; events . add ( pricedEvent ) ; events . add ( pricedEvent ) ; java . util . List < org . oscm . internal . vo . VOPricedEvent > voEvents = org . os...
org . junit . Assert . assertEquals ( 2 , voEvents . size ( ) )
testPopulateEmrRoles_emrRoleNull ( ) { org . pentaho . ui . xul . util . AbstractModelList < java . lang . String > roles = jobExecutorController . populateEmrRoles ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return getPropertyNames ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , roles . size ( ) )
test_getPointsEarned_0 ( ) { int points = com . levelup . java . exercises . beginner . BookClubPoints . getPointsEarned ( 0 ) ; "<AssertPlaceHolder>" ; } getPointsEarned ( int ) { if ( numberOfBooksPurchased < 1 ) { return 0 ; } else if ( numberOfBooksPurchased == 1 ) { return 5 ; } else if ( numberOfBooksPurchased ==...
org . junit . Assert . assertEquals ( 0 , points )
encodeAndCheckPassword ( ) { when ( systemSettingsStore . getSetting ( SystemSettingsStore . BCRYPT_ROUNDS ) ) . thenReturn ( "4" ) ; passwordEncoder . init ( ) ; java . lang . String encPass = passwordEncoder . encode ( de . blizzy . documentr . access . BCryptPasswordEncoderTest . PASSWORD ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertTrue ( passwordEncoder . matches ( de . blizzy . documentr . access . BCryptPasswordEncoderTest . PASSWORD , encPass ) )
countCrossingsBetweenLayers_intoSamePort ( ) { org . eclipse . elk . alg . layered . graph . Layer leftLayer = makeLayer ( graph ) ; org . eclipse . elk . alg . layered . graph . Layer rightLayer = makeLayer ( graph ) ; org . eclipse . elk . alg . layered . graph . LNode topLeft = addNodeToLayer ( leftLayer ) ; org . e...
org . junit . Assert . assertThat ( counter . countCrossingsBetweenLayers ( order ( ) [ 0 ] , order ( ) [ 1 ] ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testCursorAll ( ) { com . alibaba . otter . canal . meta . MixedMetaManager metaManager = new com . alibaba . otter . canal . meta . MixedMetaManager ( ) ; com . alibaba . otter . canal . meta . ZooKeeperMetaManager zooKeeperMetaManager = new com . alibaba . otter . canal . meta . ZooKeeperMetaManager ( ) ; zooKeeperMe...
org . junit . Assert . assertEquals ( position , lastPosition )
testAdjacentVerticesIteratorRemove ( ) { edu . ucla . sspace . graph . Graph < edu . ucla . sspace . graph . Edge > g = new edu . ucla . sspace . graph . SparseUndirectedGraph ( ) ; for ( int i = 0 ; i < 10 ; ++ i ) { for ( int j = i + 1 ; j < 10 ; ++ j ) { edu . ucla . sspace . graph . Edge e = new edu . ucla . sspace...
org . junit . Assert . assertTrue ( it . hasNext ( ) )
testObjectWritable ( ) { java . lang . Integer o = 1 ; io . hgraphdb . giraph . ObjectWritable < java . lang . Integer > writable = new io . hgraphdb . giraph . ObjectWritable ( o ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . DataOutputStream output = new java . io...
org . junit . Assert . assertEquals ( o , o2 )
testMultiClose ( ) { org . jboss . jbossts . xts . bytemanSupport . participantCompletion . ParticipantCompletionCoordinatorRules . setParticipantCount ( 2 ) ; com . arjuna . mw . wst11 . UserBusinessActivity uba = com . arjuna . mw . wst11 . UserBusinessActivity . getUserBusinessActivity ( ) ; com . arjuna . mw . wst1...
org . junit . Assert . assertTrue ( p . passed ( ) )
shouldAppendParametersToUrlWithQuerystring ( ) { java . lang . String url = "http://www.example.com?already=present" ; final java . lang . String expectedUrl = "http://www.example.com?already=present&param1=value1&param2=value%20with%20spaces" ; params . add ( "param1" , "value1" ) ; params . add ( "param2" , "value<sp...
org . junit . Assert . assertEquals ( expectedUrl , url )
getUsersByIds ( ) { System . out . println ( ( ( cz . metacentrum . perun . core . entry . UsersManagerEntryIntegrationTest . CLASS_NAME ) + "getUsersByIds" ) ) ; java . util . List ids = new java . util . ArrayList ( ) ; java . util . List users = new java . util . ArrayList ( ) ; for ( int i = 1 ; i < 1002 ; i ++ ) {...
org . junit . Assert . assertEquals ( users , perun . getUsersManagerBl ( ) . getUsersByIds ( sess , ids ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . ihe . operations . ProblemConcernEntryOperations obj = new org . openhealthtools . mdht . uml . cda . ihe . operations . ProblemConcernEntryOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . asset . kernel . model . AssetLink . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testGetMessageId ( ) { java . lang . String messageId = "abcd" ; org . apache . camel . Exchange exchange = org . mockito . Mockito . mock ( org . apache . camel . Exchange . class ) ; org . apache . camel . Message message = org . mockito . Mockito . mock ( org . apache . camel . Message . class ) ; org . mockito . Mo...
org . junit . Assert . assertEquals ( messageId , decorator . getMessageId ( exchange ) )
emptyNullTest ( ) { java . util . List < java . lang . String > result = getResult ( "," , null ) ; "<AssertPlaceHolder>" ; } getResult ( java . lang . String , java . lang . String ) { org . araqne . logdb . query . expr . Expression arg1 = ( ( org . araqne . logdb . query . expr . Expression ) ( new org . araqne . lo...
org . junit . Assert . assertNull ( result )
jaxbNVUnorderedWithImpliedRoot ( ) { org . ebayopensource . turmeric . runtime . tests . service1 . sample . types1 . MyMessage msg = org . ebayopensource . turmeric . runtime . tests . common . util . TestUtils . createTestMessage ( 1 ) ; org . ebayopensource . turmeric . runtime . common . binding . DataBindingDesc d...
org . junit . Assert . assertEquals ( msg , msg1 )
shouldPrintNoWS ( ) { writer . print ( "HELLO" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( "spacemanager={" + ( destination ) ) + ",<sp>" ) + ( inner ) ) + "}" ; }
org . junit . Assert . assertThat ( result . toString ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( "HELLO" ) ) )
rootConfigEntryInNdkSearchOrderIsUsed ( ) { java . nio . file . Path configDir = createTmpNdkVersions ( tmpDir , com . facebook . buck . android . toolchain . ndk . impl . AndroidNdkResolver . NDK_POST_R11_VERSION_FILENAME , "ndk-dir-r17c1" , "Pkg.Desc<sp>=<sp>Android<sp>NDK\nPkg.Revision<sp>=<sp>17.2.4988734.1" ) [ 0 ...
org . junit . Assert . assertEquals ( configDir , resolver . getNdkOrThrow ( ) )
testSpeed2 ( ) { java . io . InputStream cifStream = new java . util . zip . GZIPInputStream ( this . getClass ( ) . getResourceAsStream ( "/4hhb.cif.gz" ) ) ; java . io . InputStream pdbStream = new java . util . zip . GZIPInputStream ( this . getClass ( ) . getResourceAsStream ( "/4hhb.pdb.gz" ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertNotNull ( cifStream )
test1 ( ) { java . lang . reflect . Method method = org . jboss . invocation . test . ChainedInterceptorTestCase . class . getMethod ( "echo" , java . lang . String . class ) ; org . jboss . invocation . InterceptorContext context = new org . jboss . invocation . InterceptorContext ( ) ; context . setMethod ( method ) ...
org . junit . Assert . assertEquals ( expected , result )
testKeepsCustomAttributes ( ) { java . lang . String originalImgTag = java . lang . String . format ( "<img<sp>class=\"custom\"<sp>data-image-id=\"%s\"<sp>src=\"%s\"<sp>/>" , com . liferay . upload . web . internal . HTMLImageAttachmentElementReplacerTest . _IMAGE_FILE_ENTRY_ID , com . liferay . portal . kernel . util ...
org . junit . Assert . assertEquals ( expectedImgTag , actualTag )
blank ( ) { name . pehl . karaka . shared . model . Duration duration = cut . parse ( "<sp>" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { name . pehl . karaka . shared . model . Duration result = name . pehl . karaka . shared . model . Duration . ZERO ; if ( ( time != null ) && ( ( time . trim ( ) . l...
org . junit . Assert . assertEquals ( Duration . ZERO , duration )
testCopyFromFile ( ) { java . io . InputStream resourceStream = getClass ( ) . getResourceAsStream ( "/activities/_2_0/activity-assign.bpel" ) ; net . bpelunit . model . bpel . IProcess process = net . bpelunit . model . bpel . BpelFactory . loadProcess ( resourceStream ) ; net . bpelunit . model . bpel . IAssign a = (...
org . junit . Assert . assertEquals ( 2 , a . getCopies ( ) . size ( ) )
testNotEquals ( ) { if ( ( receiver ) != null ) { receiver . close ( ) ; } receiver = receiverSession . createReceiver ( receiverQueue , "weight<sp><><sp>2500" ) ; javax . jms . TextMessage dummyMessage = senderSession . createTextMessage ( ) ; dummyMessage . setLongProperty ( "weight" , 2500 ) ; dummyMessage . setText...
org . junit . Assert . assertEquals ( "testEquals:2" , msg . getText ( ) )
failOnExtractEmptyFile ( ) { java . lang . String file = "" ; org . apache . accumulo . core . data . Key k = new org . apache . accumulo . core . data . Key ( file ) ; org . apache . hadoop . io . Text extractedFile = new org . apache . hadoop . io . Text ( ) ; org . apache . accumulo . core . replication . Replicatio...
org . junit . Assert . assertEquals ( file , extractedFile . toString ( ) )
objectsWithFetchSpecificationDoNotReturnSubEntityObjectsIfNotIsDeep ( ) { com . wounit . rules . MockEditingContext editingContext = new com . wounit . rules . MockEditingContext ( TEST_MODEL_NAME ) ; com . wounit . model . FooEntity . createFooEntity ( editingContext ) ; com . wounit . model . SubFooEntity . createSub...
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testMultipleSyncRequest ( ) { org . kaaproject . kaa . server . transport . channel . ChannelContext channelContextMock = org . mockito . Mockito . mock ( org . kaaproject . kaa . server . transport . channel . ChannelContext . class ) ; org . kaaproject . kaa . common . endpoint . gen . SyncRequest request = new org ....
org . junit . Assert . assertNotNull ( akkaService . getActorSystem ( ) )
testAsync ( ) { System . out . println ( "testing<sp>with<sp>asynchronous<sp>state<sp>manager" ) ; org . joo . steak . test . states . TestStateContext stateContext = new org . joo . steak . test . states . TestStateContext ( "default" , 0 ) ; org . joo . steak . framework . config . StateEngineConfiguration configurat...
org . junit . Assert . assertEquals ( 1 , stateContext . getData ( ) )
testTrailingSemicolon ( ) { final org . fcrepo . http . commons . domain . PreferTag preferTag = new org . fcrepo . http . commons . domain . PreferTag ( "foo=bar;" ) ; "<AssertPlaceHolder>" ; } getParams ( ) { return params ; }
org . junit . Assert . assertNotNull ( preferTag . getParams ( ) )
testSaveApplication ( ) { org . kaaproject . kaa . server . common . dao . model . sql . Application application = generateApplication ( null ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertNotNull ( application . getId ( ) )
testGroupNotExists ( ) { org . jbpm . services . task . identity . DBUserGroupCallbackImpl callback = new org . jbpm . services . task . identity . DBUserGroupCallbackImpl ( props ) ; boolean exists = callback . existsGroup ( "HR" ) ; "<AssertPlaceHolder>" ; } existsGroup ( java . lang . String ) { return true ; }
org . junit . Assert . assertFalse ( exists )
getsPathFromString ( ) { org . eclipse . swtbot . swt . finder . utils . TreePath path = new org . eclipse . swtbot . swt . finder . finders . PathGenerator ( ) . getPathFromString ( "//Shell/0//TabFolder/0//TabItem/5" , display ) ; org . hamcrest . Matcher < org . eclipse . swt . widgets . TabItem > withText = withTex...
org . junit . Assert . assertEquals ( expected , path )
testFindOneByCriteria ( ) { org . springframework . data . solr . repository . ProductBean found = repo . findByNameAndAvailableTrue ( org . springframework . data . solr . repository . ITestSolrRepositoryOperations . NAMED_PRODUCT . getName ( ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( org . springframework . data . solr . repository . ITestSolrRepositoryOperations . NAMED_PRODUCT . getId ( ) , found . getId ( ) )
count_booleans_arraylist_java8 ( ) { java . util . List < java . lang . Boolean > values = com . google . common . collect . Lists . newArrayList ( true , true , false , true , false ) ; long count = values . stream ( ) . filter ( ( p ) -> p == true ) . count ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 3 , count )
shouldIdentifyMarkdownFile ( ) { for ( java . lang . String extension : transformer . markdownExtensions ( ) ) { java . io . File mdFile = java . io . File . createTempFile ( "abc" , ( "." + extension ) ) ; "<AssertPlaceHolder>" ; } } isMarkdownFile ( java . io . File ) { return ( ( file != null ) && ( file . isFile ( ...
org . junit . Assert . assertThat ( transformer . isMarkdownFile ( mdFile ) , org . hamcrest . CoreMatchers . is ( true ) )
testCopyDirectory ( ) { bbejeck . nio . files . Path target = basePath . resolve ( copyDir ) ; bbejeck . nio . files . Path targetDir = target . resolve ( basePath . relativize ( fooPath ) ) ; bbejeck . nio . files . Files . copy ( fooPath , targetDir ) ; bbejeck . nio . files . Path expectedPath = bbejeck . nio . file...
org . junit . Assert . assertThat ( bbejeck . nio . files . Files . exists ( expectedPath ) , org . hamcrest . CoreMatchers . is ( true ) )
emptySplitValueTest ( ) { java . util . List < java . lang . String > actual = com . itextpdf . svg . utils . SvgCssUtils . splitValueList ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( subpaths . size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( actual . isEmpty ( ) )
searchValue_not_SSO_nor_MD5 ( ) { when ( query . isInverse ( ) ) . thenReturn ( java . lang . Boolean . TRUE ) ; when ( query . getSearchValue ( ) ) . thenReturn ( "ORG-TP1-TEST" ) ; subject . validate ( query , messages ) ; "<AssertPlaceHolder>" ; } hasMessages ( ) { for ( final java . util . Set < net . ripe . db . w...
org . junit . Assert . assertThat ( messages . hasMessages ( ) , org . hamcrest . Matchers . is ( false ) )
clear ( ) { map . clear ( ) ; "<AssertPlaceHolder>" ; } size ( ) { int size = 0 ; for ( java . util . Enumeration < ? > e = request . getAttributeNames ( ) ; e . hasMoreElements ( ) ; e . nextElement ( ) ) { size ++ ; } return size ; }
org . junit . Assert . assertThat ( map . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
shouldNotAddEmptyHistory ( ) { com . rapidftr . model . BaseModel model = new com . rapidftr . model . BaseModel ( ) ; com . rapidftr . model . History history = com . rapidftr . model . History . buildHistoryBetween ( rapidFtrApplication , model , model ) ; model . addHistory ( history ) ; "<AssertPlaceHolder>" ; } ad...
org . junit . Assert . assertFalse ( history . has ( History . HISTORIES ) )
equalsSelf ( ) { final com . lightboxtechnologies . nsrl . ProdData pd = new com . lightboxtechnologies . nsrl . ProdData ( com . lightboxtechnologies . nsrl . ProdDataTest . code , com . lightboxtechnologies . nsrl . ProdDataTest . name , com . lightboxtechnologies . nsrl . ProdDataTest . version , com . lightboxtechn...
org . junit . Assert . assertTrue ( pd . equals ( pd ) )
testUtf ( ) { java . lang . String text = org . apache . poi . hwpf . usermodel . TestBug46610 . runExtract ( "Bug46610_1.doc" ) ; "<AssertPlaceHolder>" ; } runExtract ( java . lang . String ) { org . apache . poi . hwpf . HWPFDocument doc = org . apache . poi . hwpf . HWPFTestDataSamples . openSampleFile ( sampleName ...
org . junit . Assert . assertNotNull ( text )
shouldRetrunTrueWhenCheckIfProductIsNotUsedIfCompanyIsNull ( ) { java . lang . String belongsToProductName = "product" ; java . lang . String belongsToCompanyName = "company" ; java . lang . String hasManyName = "products" ; given ( companyProduct . getId ( ) ) . willReturn ( null ) ; given ( companyProduct . getBelong...
org . junit . Assert . assertTrue ( result )
testNoProceedInterceptor ( ) { org . glassfish . hk2 . api . ServiceLocator locator = org . glassfish . hk2 . tests . locator . utilities . LocatorHelper . getServiceLocator ( org . glassfish . hk2 . tests . locator . interception1 . CountingService . class , org . glassfish . hk2 . tests . locator . interception1 . No...
org . junit . Assert . assertEquals ( 0 , counter . gotCalled ( ) )
containsAllArray ( ) { org . eclipse . collections . api . bag . sorted . ImmutableSortedBag < java . lang . Integer > bag1 = this . classUnderTest ( ) ; "<AssertPlaceHolder>" ; } containsAllArguments ( java . lang . Object [ ] ) { return false ; }
org . junit . Assert . assertTrue ( bag1 . containsAllArguments ( bag1 . toArray ( ) ) )
testEmptyChain ( ) { com . picocontainer . web . chain . ContainerChain chain = new com . picocontainer . web . chain . ContainerChain ( ) ; "<AssertPlaceHolder>" ; } getLast ( ) { return last ; }
org . junit . Assert . assertNull ( chain . getLast ( ) )
testDelete ( ) { com . vmware . admiral . log . EventLogService . EventLogState createdState = doPost ( eventLogState , EventLogService . FACTORY_LINK ) ; doDelete ( com . vmware . xenon . common . UriUtils . buildUri ( host , createdState . documentSelfLink ) , false ) ; com . vmware . admiral . log . EventLogService ...
org . junit . Assert . assertNull ( retrievedState )
nextAfterEmptyIterable ( ) { java . lang . Object expected = new java . lang . Object ( ) ; com . gs . collections . impl . lazy . iterator . FlatCollectIterator < java . util . List < java . lang . Object > , java . lang . Object > flattenIterator = new com . gs . collections . impl . lazy . iterator . FlatCollectIter...
org . junit . Assert . assertSame ( expected , flattenIterator . next ( ) )
testHash ( ) { com . zsmartsystems . zigbee . security . ZigBeeKey key1 = new com . zsmartsystems . zigbee . security . ZigBeeKey ( "11223344556677889900AABBCCDDEEFF" ) ; com . zsmartsystems . zigbee . security . ZigBeeKey key2 = new com . zsmartsystems . zigbee . security . ZigBeeKey ( "11223344556677889900AABBCCDDEEF...
org . junit . Assert . assertEquals ( key1 . hashCode ( ) , key2 . hashCode ( ) )
testMatchHdfsPolicy_NoPremission ( ) { org . apache . ranger . view . VXResponse vXResponse = new org . apache . ranger . view . VXResponse ( ) ; java . util . List < org . apache . ranger . entity . XXResource > xResourceList = new java . util . ArrayList < org . apache . ranger . entity . XXResource > ( ) ; org . apa...
org . junit . Assert . assertFalse ( bnlChk )
tesBerichtSyntaxException ( ) { final java . lang . String berichtOrigineel = org . apache . commons . io . IOUtils . toString ( nl . moderniseringgba . isc . esb . message . brp . impl . TransseksualiteitVerzoekBerichtTest . class . getResourceAsStream ( "transseksualiteitVerzoekBerichtSyntaxExceptionBericht.xml" ) ) ...
org . junit . Assert . assertTrue ( ( brpBericht instanceof nl . moderniseringgba . isc . esb . message . brp . impl . OngeldigBericht ) )
testFindBindPairForInStream ( ) { org . apache . commons . compress . archivers . sevenz . Folder folder = new org . apache . commons . compress . archivers . sevenz . Folder ( ) ; org . apache . commons . compress . archivers . sevenz . BindPair [ ] bindPairArray = new org . apache . commons . compress . archivers . s...
org . junit . Assert . assertEquals ( 0 , folder . findBindPairForInStream ( 0 ) )
test_withDayOfMonth_noChangeSame ( ) { java . time . MonthDay test = java . time . MonthDay . of ( 6 , 30 ) ; "<AssertPlaceHolder>" ; } withDayOfMonth ( int ) { if ( ( this . day ) == dayOfMonth ) { return this ; } return java . time . LocalDate . of ( year , month , dayOfMonth ) ; }
org . junit . Assert . assertSame ( test . withDayOfMonth ( 30 ) , test )
testFindUnsubmittedOcanFormsByOcanType ( ) { int facilityId1 = 100 ; int facilityId2 = 200 ; java . lang . String assessmentStatus1 = "Completed" ; java . lang . String assessmentStatus2 = "NotCompleted" ; java . lang . String ocanType1 = "alpha" ; java . lang . String ocanType2 = "bravo" ; int submissionId1 = 0 ; int ...
org . junit . Assert . assertTrue ( true )
testSafeCrossDocumentCloning ( ) { java . lang . String template = "<test:Bar<sp>text='${foo.title}'<sp>data='${user}'/>" ; executeTemplate ( template , ( ( "xmlns:test='" + ( org . apache . shindig . gadgets . templates . DefaultTemplateProcessorTest . TEST_NS ) ) + '\'' ) ) ; executeTemplate ( template , ( ( "xmlns:t...
org . junit . Assert . assertEquals ( 1 , userDataMap . size ( ) )
testPeek ( ) { java . lang . Object value = "testObject" ; when ( nativeResultSet . getObject ( anyInt ( ) ) ) . thenReturn ( value ) ; when ( nativeResultSet . next ( ) ) . thenReturn ( true ) ; org . pentaho . platform . plugin . services . connections . sql . SQLResultSet resultSet = new org . pentaho . platform . p...
org . junit . Assert . assertEquals ( value , objects [ i ] )
testSFBug826942 ( ) { org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . interfaces . IAtomContainer molecule = sp . parseSmiles ( "C1CCC2C(C1)C4CCC3(CCCCC23)(C4)" )...
org . junit . Assert . assertEquals ( 4 , ringSet . getAtomContainerCount ( ) )
testSerialization ( ) { org . jfree . data . xy . XYIntervalSeries s1 = new org . jfree . data . xy . XYIntervalSeries ( "s1" ) ; s1 . add ( 1.0 , 0.5 , 1.5 , 2.0 , 1.9 , 2.1 ) ; org . jfree . data . xy . XYIntervalSeries s2 = ( ( org . jfree . data . xy . XYIntervalSeries ) ( org . jfree . chart . TestUtils . serialis...
org . junit . Assert . assertEquals ( s1 , s2 )
testRearrangementAnionReaction ( ) { org . openscience . cdk . reaction . IReactionProcess type = new org . openscience . cdk . reaction . type . RearrangementAnionReaction ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( type )
testDecryptFromFile ( ) { com . amazonaws . encryptionsdk . AwsCrypto crypto = new com . amazonaws . encryptionsdk . AwsCrypto ( ) ; final com . amazonaws . encryptionsdk . kms . KmsMasterKeyProvider masterKeyProvider = new com . amazonaws . encryptionsdk . kms . KmsMasterKeyProvider ( kmsKeyId ) ; byte [ ] ciphertextB...
org . junit . Assert . assertArrayEquals ( plaintextBytes , ( ( byte [ ] ) ( decryptResult . getResult ( ) ) ) )
testDoGetDirAsZipWithFile ( ) { org . pentaho . platform . api . repository2 . unified . RepositoryFile mockRepositoryFile = mock ( org . pentaho . platform . api . repository2 . unified . RepositoryFile . class ) ; java . lang . String path = "path" ; doReturn ( path ) . when ( mockRepositoryFile ) . getPath ( ) ; org...
org . junit . Assert . assertEquals ( mockResponse , testResponse )
testIsSerializable ( ) { new org . eclipse . swt . widgets . ExpandItem ( expandBar , org . eclipse . swt . SWT . NONE ) ; org . eclipse . swt . widgets . ExpandBar deserializedExpandBar = serializeAndDeserialize ( expandBar ) ; "<AssertPlaceHolder>" ; } getItemCount ( ) { checkWidget ( ) ; return hasChildren ? getItem...
org . junit . Assert . assertEquals ( 1 , deserializedExpandBar . getItemCount ( ) )
makeSureUpdateShortStringWontGrowStringStoreFromShortStringDb ( ) { createNode ( map ( "key1" , "one" , "key2" , "two" ) ) ; long node = createNode ( map ( "name" , "Neo" ) ) ; long sizeBefore = getSizeOfStringStore ( ) ; setProperty ( node , "name" , "new<sp>value" ) ; "<AssertPlaceHolder>" ; } getSizeOfStringStore ( ...
org . junit . Assert . assertEquals ( sizeBefore , getSizeOfStringStore ( ) )
testGetAttributeNames_isThreadSafe ( ) { final java . util . List < java . lang . Throwable > errors = synchronizedList ( new java . util . ArrayList < java . lang . Throwable > ( ) ) ; java . lang . Runnable runnable = new java . lang . Runnable ( ) { @ org . eclipse . rap . rwt . internal . service . Override public ...
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , errors )
testFromValue ( ) { final com . outbrain . ob1k . concurrent . ComposableFuture < java . lang . Integer > res = com . outbrain . ob1k . concurrent . lazy . LazyComposableFuture . fromValue ( 3 ) ; final java . lang . Integer result = res . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { return credentials ; }
org . junit . Assert . assertEquals ( result , new java . lang . Integer ( 3 ) )
testCreateNewThesaurusWithCreator ( ) { fr . mcc . ginco . beans . Thesaurus newThesaurus = new fr . mcc . ginco . beans . Thesaurus ( ) ; fr . mcc . ginco . beans . ThesaurusOrganization thOrg = new fr . mcc . ginco . beans . ThesaurusOrganization ( ) ; thOrg . setName ( "Un<sp>auteur" ) ; newThesaurus . setTitle ( "t...
org . junit . Assert . assertEquals ( "Un<sp>auteur" , updatedThesaurus . getCreator ( ) . getName ( ) )
getNetworkIds_NetworkIdTrimLengthIsZero ( ) { org . apache . commons . configuration . HierarchicalConfiguration configuration = prepareConfiguration ( org . oscm . app . ror . LPlatformConfigurationTest . NETWORKID , "<sp>" ) ; lPlatformConfiguration = new org . oscm . app . ror . data . LPlatformConfiguration ( confi...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testGetWriteOperation ( ) { "<AssertPlaceHolder>" ; } getWriteOperation ( ) { return writeOperation ; }
org . junit . Assert . assertEquals ( writeOperation , writer . getWriteOperation ( ) )
test_JAVASERVERFACES_3757_Caftera_startWithCab ( ) { java . util . List < com . liferay . faces . util . config . internal . FacesConfigDescriptor > facesConfigDescriptors = new java . util . ArrayList < com . liferay . faces . util . config . internal . FacesConfigDescriptor > ( ) ; com . liferay . faces . util . xml ...
org . junit . Assert . assertTrue ( message , assertion )
testLocalDiffOneFile ( ) { final org . tmatesoft . svn . test . TestOptions options = org . tmatesoft . svn . test . TestOptions . getInstance ( ) ; final org . tmatesoft . svn . test . SvnOperationFactory svnOperationFactory = new org . tmatesoft . svn . test . SvnOperationFactory ( ) ; final org . tmatesoft . svn . t...
org . junit . Assert . assertEquals ( expectedDiffOutput , actualDiffOutput )
testCECP1 ( ) { java . lang . String name1 = "PDP:3A2KAc" ; java . lang . String name2 = "d1wy5a2" ; org . biojava . nbio . structure . align . ce . CeCPMain algorithm = new org . biojava . nbio . structure . align . ce . CeCPMain ( ) ; org . biojava . nbio . structure . align . util . AtomCache cache = new org . bioja...
org . junit . Assert . assertEquals ( 1 , afpChain . getBlockNum ( ) )
testW1Y1900Previous ( ) { org . jfree . data . time . Week previous = ( ( org . jfree . data . time . Week ) ( this . w1Y1900 . previous ( ) ) ) ; "<AssertPlaceHolder>" ; } previous ( ) { synchronized ( checkClosed ( ) . getConnectionMutex ( ) ) { if ( this . onInsertRow ) { this . onInsertRow = false ; } if ( this . d...
org . junit . Assert . assertNull ( previous )
tripleChangeToRepo ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( ChangeTripleService . POST_BODY_CHANGETYPE , ChangeTripleService . CHANGETYPE_ADD ) ; props . setProperty ( ChangeTripleService . POST_BODY_AFFECTEDTRIPLE , "<http://example.org/myconcept><sp><http://www.w...
org . junit . Assert . assertEquals ( 200 , postChangeset ( props ) )
resolvePojoNode ( ) { java . lang . String name = "pojo" ; java . lang . Object result = new java . lang . Object ( ) ; com . fasterxml . jackson . databind . JsonNode node = createMock ( com . fasterxml . jackson . databind . JsonNode . class ) ; com . fasterxml . jackson . databind . JsonNode value = new com . faster...
org . junit . Assert . assertEquals ( result , JsonNodeValueResolver . INSTANCE . resolve ( node , name ) )
testGetUserPassword ( ) { org . musicrecital . model . User user = dao . get ( ( - 1L ) ) ; java . lang . String password = dao . getUserPassword ( user . getId ( ) ) ; "<AssertPlaceHolder>" ; log . debug ( ( "password:<sp>" + password ) ) ; } getId ( ) { return id ; }
org . junit . Assert . assertNotNull ( password )
testGetClassMethod ( ) { java . lang . Object obj = new java . lang . Object ( ) ; new java . lang . ref . WeakReference ( obj ) ; "<AssertPlaceHolder>" ; } getClass ( ) { return null ; }
org . junit . Assert . assertSame ( java . lang . Object . class , obj . getClass ( ) )
testGetMapforJsonStringEmptyString ( ) { java . util . Map < java . lang . String , java . lang . String > resultMap = org . apache . sqoop . util . SqoopJsonUtil . getMapforJsonString ( "" ) ; "<AssertPlaceHolder>" ; } getMapforJsonString ( java . lang . String ) { org . apache . sqoop . util . SqoopJsonUtil . LOG . d...
org . junit . Assert . assertTrue ( resultMap . isEmpty ( ) )
testModularGB9 ( ) { java . lang . String [ ] vars = new java . lang . String [ ] { "x1" , "x2" , "x3" , "x4" } ; cc . redberry . rings . poly . multivar . MultivariatePolynomial < cc . redberry . rings . bigint . BigInteger > a = cc . redberry . rings . poly . multivar . MultivariatePolynomial . parse ( "6*x2*x4^3<sp>...
org . junit . Assert . assertEquals ( f4 , mod )
saveAll_String_Test ( ) { de . bytefish . pgbulkinsert . pgsql . handlers . List < de . bytefish . pgbulkinsert . pgsql . handlers . PgBulkInsertTest . SampleEntity > entities = new de . bytefish . pgbulkinsert . pgsql . handlers . ArrayList ( ) ; de . bytefish . pgbulkinsert . pgsql . handlers . PgBulkInsertTest . Sam...
org . junit . Assert . assertEquals ( "ABC" , v )
testGetErrorDialogNull ( ) { if ( java . awt . GraphicsEnvironment . isHeadless ( ) ) { org . jdesktop . swingx . plaf . basic . BasicErrorPaneUITest . LOG . fine ( "cannot<sp>run<sp>-<sp>headless<sp>environment" ) ; return ; } "<AssertPlaceHolder>" ; } getErrorDialog ( java . awt . Component ) { javax . swing . JDialo...
org . junit . Assert . assertNotNull ( ui . getErrorDialog ( null ) )
testCanInitNotListened ( ) { java . net . ServerSocket ss = new java . net . ServerSocket ( 0 ) ; int port = ss . getLocalPort ( ) ; ss . close ( ) ; new mockit . Expectations ( org . apache . servicecomb . transport . rest . servlet . ServletConfig . class ) { { org . apache . servicecomb . transport . rest . servlet ...
org . junit . Assert . assertFalse ( transport . canInit ( ) )