input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testOr1 ( ) { org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 0 , 1 , 0 , 0 } ) ; org . nd4j . linalg . api . ndarray . INDArray y = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 0 , 1 , 1 , 0 } ) ; org . nd4j . linalg . api ...
org . junit . Assert . assertEquals ( y , z )
testVectorSerialize ( ) { int size = 100 ; org . apache . giraph . aggregators . matrix . sparse . LongSparseVector from = new org . apache . giraph . aggregators . matrix . sparse . LongSparseVector ( size ) ; from . set ( 0 , 10 ) ; from . set ( 10 , 5 ) ; from . set ( 12 , 1 ) ; byte [ ] data = org . apache . giraph...
org . junit . Assert . assertEquals ( from . get ( i ) , to . get ( i ) )
sequenceOfWhitespacesAtEndOfFile ( ) { org . apache . uima . collection . CollectionReaderDescription reader = createReaderDescription ( de . tudarmstadt . ukp . dkpro . core . io . text . TextReader . class , TextReader . PARAM_SOURCE_LOCATION , "src/test/resources" , TextReader . PARAM_LANGUAGE , "ja" , TextReader . ...
org . junit . Assert . assertEquals ( 2 , tokens . size ( ) )
testWriteCopy ( ) { sonia . scm . cache . Cache < java . lang . String , sonia . scm . cache . CacheCopyTestBase . MutableObject > cache = createCache ( CopyStrategy . WRITE ) ; sonia . scm . cache . CacheCopyTestBase . MutableObject mo = new sonia . scm . cache . CacheCopyTestBase . MutableObject ( 1 ) ; cache . put (...
org . junit . Assert . assertEquals ( 1 , mo . getVersion ( ) )
testGetPlatformTransactionManager ( ) { com . liferay . portal . spring . transaction . CounterTransactionExecutorTest . RecordPlatformTransactionManager recordPlatformTransactionManager = new com . liferay . portal . spring . transaction . CounterTransactionExecutorTest . RecordPlatformTransactionManager ( _transactio...
org . junit . Assert . assertSame ( recordPlatformTransactionManager , transactionExecutor . getPlatformTransactionManager ( ) )
testOk ( ) { final nl . bzk . migratiebrp . conversie . model . lo3 . Lo3PersoonslijstBuilder builder = new nl . bzk . migratiebrp . conversie . model . lo3 . Lo3PersoonslijstBuilder ( ) ; builder . inschrijvingStapel ( nl . bzk . migratiebrp . conversie . model . proces . brpnaarlo3 . Lo3StapelHelper . lo3Stapel ( nl ...
org . junit . Assert . assertEquals ( null , subject . execute ( parameters ) )
testValidation ( ) { java . lang . String format = "f:,classpath:,verbose" ; org . hivedb . util . GetOpt opt = new org . hivedb . util . GetOpt ( format ) ; opt . toMap ( new java . lang . String [ ] { "aCommand" , "-classpath" , "aClasspath" , "--f" , "aFile" , "--verbose" } ) ; "<AssertPlaceHolder>" ; } validate ( )...
org . junit . Assert . assertTrue ( opt . validate ( ) )
testArrayGCD1 ( ) { cc . redberry . rings . poly . multivar . IntegersZp64 domain = new cc . redberry . rings . poly . multivar . IntegersZp64 ( cc . redberry . rings . primes . BigPrimes . nextPrime ( 1321323 ) ) ; cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 gcd = cc . redberry . rings . poly ...
org . junit . Assert . assertEquals ( gcd , aGcd )
composeWithMatchersClonesList ( ) { java . util . List < org . hamcrest . Matcher < ? super java . lang . String > > matchers = new java . util . ArrayList ( ) ; matchers . add ( org . hamcrest . CoreMatchers . startsWith ( "y" ) ) ; org . hamcrest . Matcher < java . lang . String > actual = org . hobsoft . hamcrest . ...
org . junit . Assert . assertThat ( actual . matches ( "y" ) , org . hamcrest . CoreMatchers . is ( true ) )
testValidateFunctionWithSevenArguments ( ) { net . objecthunter . exp4j . Expression exp = new net . objecthunter . exp4j . ExpressionBuilder ( "eta(1,<sp>2,<sp>3,<sp>4,<sp>5,<sp>6,<sp>7)" ) . functions ( eta ) . build ( ) ; net . objecthunter . exp4j . ValidationResult result = exp . validate ( false ) ; "<AssertPlace...
org . junit . Assert . assertTrue ( result . isValid ( ) )
loadAuditLogs_byOperationName1 ( ) { givenAuditLogs ( ) ; operatorIds . add ( "opId1" ) ; java . util . List < org . oscm . auditlog . model . AuditLog > dbAuditLogs = loadAuditLogsInTx ( operatorIds , 0 , Long . MAX_VALUE ) ; long [ ] creationTimes = new long [ ] { 1 , 2 , 3 } ; "<AssertPlaceHolder>" ; } containCreati...
org . junit . Assert . assertThat ( dbAuditLogs , containCreationTimes ( "opId1" , creationTimes ) )
testSimpleRemoval ( ) { byte [ ] actual = passthrough ( new byte [ ] { 13 , 10 } ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertArrayEquals ( new byte [ ] { 10 } , actual )
registerServiceExistsEndpointExistsCheckLastTimes ( ) { org . talend . esb . servicelocator . client . Endpoint endpoint = org . talend . esb . servicelocator . client . internal . EndpointStubFactory . create ( org . talend . esb . servicelocator . TestValues . SERVICE_QNAME_1 , org . talend . esb . servicelocator . T...
org . junit . Assert . assertTrue ( ( ( beforeRegister <= lastTimeStarted ) && ( lastTimeStarted <= afterRegister ) ) )
getsAllColumnHeadings ( ) { bot . checkBox ( "Header<sp>Visible" ) . click ( ) ; java . util . ArrayList < java . lang . String > arrayList = new java . util . ArrayList < java . lang . String > ( ) ; arrayList . add ( "Name" ) ; arrayList . add ( "Type" ) ; arrayList . add ( "Size" ) ; arrayList . add ( "Modified" ) ;...
org . junit . Assert . assertEquals ( arrayList , table . columns ( ) )
collectValues ( ) { com . gs . collections . impl . multimap . set . sorted . TreeSortedSetMultimap < java . lang . String , java . lang . Integer > mutableMultimap = com . gs . collections . impl . multimap . set . sorted . TreeSortedSetMultimap . newMultimap ( com . gs . collections . impl . block . factory . Compara...
org . junit . Assert . assertEquals ( expectedImmutableMultimap , collectedMultimap )
checkContainer ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( container )
testGetDefaultGateway_With_IPCommand_Exec_ReturnDefaultGateway ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( org . osc . core . broker . util . ServerUtil . class ) ; org . powermock . api . mockito . PowerMockito . when ( org . osc . core . broker . util . ServerUtil . execWithLog ( org . mockito...
org . junit . Assert . assertNotNull ( defaultGateway )
testAddCanonicalCourseToCourseSet ( ) { cmAdmin . createCourseSet ( "cs1" , "course<sp>set" , "course<sp>set" , null , null ) ; cmAdmin . createCanonicalCourse ( "cc1" , "canon<sp>course<sp>1" , "canon<sp>course" ) ; cmAdmin . addCanonicalCourseToCourseSet ( "cs1" , "cc1" ) ; org . sakaiproject . coursemanagement . api...
org . junit . Assert . assertTrue ( cm . getCanonicalCourses ( "cs1" ) . contains ( cc ) )
testClosedOpenDescending ( ) { org . apache . commons . functor . range . CharacterRange range = org . apache . commons . functor . range . Ranges . characterRange ( 'l' , BoundType . CLOSED , 'b' , BoundType . OPEN , ( - 3 ) ) ; java . util . List < java . lang . Character > expected = java . util . Arrays . asList ( ...
org . junit . Assert . assertEquals ( expected , elements )
testGeospatialEvaluatorPointRadiusContains ( ) { ddf . catalog . pubsub . PredicateTest . LOGGER . debug ( ">\n" 9 ) ; java . lang . String geometryWkt = ">\n" 8 ; java . lang . String operation = "point_radius" ; double distance = ( 0.6 * ( ddf . catalog . pubsub . PredicateTest . NM_PER_DEG_LAT ) ) * ( ddf . catalog ...
org . junit . Assert . assertTrue ( status )
testIsHidden ( ) { com . github . bordertech . wcomponents . test . selenium . element . SeleniumWLabelWebElement label = getDriver ( ) . findWLabel ( byWComponentPath ( "WLabel[1]" ) ) ; "<AssertPlaceHolder>" ; } isHidden ( ) { return link . isHidden ( ) ; }
org . junit . Assert . assertTrue ( label . isHidden ( ) )
shouldEqualForSamePattern ( ) { org . springframework . data . mongodb . core . query . Criteria left = new org . springframework . data . mongodb . core . query . Criteria ( "field" ) . regex ( "foo" , "iu" ) ; org . springframework . data . mongodb . core . query . Criteria right = new org . springframework . data . ...
org . junit . Assert . assertThat ( left )
testSupplyAsync ( ) { final java . util . concurrent . CompletableFuture < org . apache . flink . runtime . messages . Acknowledge > future = org . apache . flink . runtime . concurrent . FutureUtils . supplyAsync ( Acknowledge :: get , org . apache . flink . runtime . testingUtils . TestingUtils . defaultExecutor ( ) ...
org . junit . Assert . assertThat ( future . get ( ) , org . hamcrest . Matchers . is ( org . apache . flink . runtime . messages . Acknowledge . get ( ) ) )
checkSetTitleWithoutHasName ( ) { final org . kie . workbench . common . dmn . api . definition . HasName mockHasName = new org . kie . workbench . common . dmn . client . widgets . grid . columns . EditableTextHeaderMetaDataTest . MockHasName ( "name" ) ; hasName = java . util . Optional . empty ( ) ; header . setTitl...
org . junit . Assert . assertEquals ( "name" , mockHasName . getName ( ) . getValue ( ) )
testEmptyLines_4 ( ) { lombok . val string = "<sp>" ; lombok . val tokens = new org . deeplearning4j . text . tokenization . tokenizerfactory . NGramTokenizerFactory ( new org . deeplearning4j . text . tokenization . tokenizerfactory . DefaultTokenizerFactory ( ) , 1 , 2 ) . create ( string ) . getTokens ( ) ; "<Assert...
org . junit . Assert . assertEquals ( 0 , tokens . size ( ) )
nullProviderModelTest ( ) { org . oscarehr . common . model . ProviderData provider = null ; org . oscarehr . e2e . model . export . header . AuthorModel authorModel = new org . oscarehr . e2e . model . export . header . AuthorModel ( provider ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( authorModel )
testResolveConnectedRegionAllowed ( ) { org . eclipse . equinox . region . internal . tests . hook . RegionFilter filter = createFilter ( org . eclipse . equinox . region . internal . tests . hook . RegionResolverHookTests . PACKAGE_B ) ; region ( org . eclipse . equinox . region . internal . tests . hook . RegionResol...
org . junit . Assert . assertTrue ( this . candidates . contains ( packageCapability ( org . eclipse . equinox . region . internal . tests . hook . RegionResolverHookTests . BUNDLE_B , org . eclipse . equinox . region . internal . tests . hook . RegionResolverHookTests . PACKAGE_B ) ) )
testHandle ( ) { java . lang . String topic = "test-topic" ; com . taobao . metamorphosis . cluster . Partition partition = new com . taobao . metamorphosis . cluster . Partition ( 0 , 0 ) ; com . taobao . metamorphosis . Message message = new com . taobao . metamorphosis . Message ( topic , "test" . getBytes ( ) ) ; c...
org . junit . Assert . assertTrue ( processor . handle ( message ) )
testGetUsersForOrganization ( ) { java . util . List < org . oscm . internal . vo . VOUserDetails > users = idMgmt . getUsersForOrganization ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , users . size ( ) )
testDifferentScreenshotsChangesInUnmaskedAreasFail ( ) { com . vaadin . testbench . screenshot . ImageComparison ic = new com . vaadin . testbench . screenshot . ImageComparison ( ) ; java . awt . image . BufferedImage screenshotImage = com . vaadin . testbench . testutils . ImageLoader . loadImage ( com . vaadin . tes...
org . junit . Assert . assertFalse ( ic . imageEqualToReference ( screenshotImage , referenceImage , "google1-masked.png" , 0 ) )
testBetweenTime ( ) { com . freedomotic . rules . PayloadTest . LOG . info ( "Check<sp>if<sp>a<sp>give<sp>hour<sp>is<sp>inside<sp>a<sp>given<sp>time<sp>interval" ) ; com . freedomotic . rules . Payload event = new com . freedomotic . rules . Payload ( ) ; event . addStatement ( Statement . AND , "morning" , Statement ....
org . junit . Assert . assertTrue ( result )
getDeserializer_RegisteredClassAndMediaType_ShouldReturnRegisteredDeserializer ( ) { io . reinert . requestor . serialization . Deserializer expected = mock ( io . reinert . requestor . serialization . Deserializer . class ) ; when ( expected . handledType ( ) ) . thenReturn ( java . lang . Object . class ) ; when ( ex...
org . junit . Assert . assertTrue ( ( expected == output ) )
positionTest3 ( ) { org . krakenapps . pcap . util . Buffer buffer = initBuffer4 ( ) ; byte [ ] temp = new byte [ 13 ] ; buffer . gets ( temp ) ; "<AssertPlaceHolder>" ; } position ( ) { int absPos = 0 ; if ( ( bufIndex ) > 0 ) { int loopCount = 0 ; for ( byte [ ] buffer : buffers ) { absPos += buffer . length ; if ( l...
org . junit . Assert . assertEquals ( 13 , buffer . position ( ) )
testGetRowKey ( ) { org . apache . hadoop . hbase . client . Result result = mock ( org . apache . hadoop . hbase . client . Result . class ) ; when ( result . getRow ( ) ) . thenReturn ( new byte [ ] { 1 , 2 , 3 } ) ; byte [ ] rowKey = commonHBaseConnection . getRowKey ( result ) ; "<AssertPlaceHolder>" ; } getRowKey ...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 , 3 } , rowKey )
testThrowCheckedException ( ) { java . io . IOException expected = new java . io . IOException ( "EXPECTED<sp>ERROR" ) ; java . io . IOException actual = null ; try { org . slieb . throwables . LongConsumerWithThrowable . aLongConsumerThatUnsafelyThrowsUnchecked ( ( v1 ) -> { throw expected ; } ) . accept ( 0 ) ; org ....
org . junit . Assert . assertEquals ( expected , actual )
createVolumeToStoragePoolMappingIfPossibleTestTargetHostAccessCurrentStoragePool ( ) { java . util . List < com . cloud . storage . StoragePool > storagePoolList = new java . util . ArrayList ( ) ; storagePoolList . add ( storagePoolVoMock ) ; org . mockito . Mockito . doReturn ( storagePoolList ) . when ( virtualMachi...
org . junit . Assert . assertTrue ( volumeToPoolObjectMap . isEmpty ( ) )
testBuildWithDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . duty . type . DutyType context = new org . lnu . is . domain . duty . type . DutyType ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>DutyType<sp>e<sp>" ; org . lnu . is...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
forEach ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Integer > result = org . eclipse . collections . impl . list . mutable . FastList . newList ( ) ; org . eclipse . collections . api . list . MutableList < java . lang . Integer > collection = org . eclipse . collections . impl . list ....
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1 , 2 , 3 , 4 ) , result )
testCanObtainJedisClient ( ) { uk . gov . dstl . baleen . resources . redis . SharedRedisResource resource = new uk . gov . dstl . baleen . resources . redis . SharedRedisResource ( ) ; resource . initialize ( new org . apache . uima . resource . impl . CustomResourceSpecifier_impl ( ) , com . google . common . collect...
org . junit . Assert . assertNotNull ( resource . getJedis ( ) )
testGetCharWidth ( ) { int width = gc . getCharWidth ( 'A' ) ; "<AssertPlaceHolder>" ; } getCharWidth ( char ) { checkDisposed ( ) ; return delegate . stringExtent ( java . lang . Character . toString ( ch ) ) . x ; }
org . junit . Assert . assertTrue ( ( width > 0 ) )
updateAppRuntimeTestV1 ( ) { final com . microsoft . azure . management . appservice . WebApp app = mock ( com . microsoft . azure . management . appservice . WebApp . class ) ; final com . microsoft . azure . management . appservice . implementation . SiteInner siteInner = mock ( com . microsoft . azure . management ....
org . junit . Assert . assertSame ( update , handler . updateAppRuntime ( app ) )
testGetQueryTimeoutSaysNoTimeout ( ) { try ( java . sql . PreparedStatement statement = getConnection ( ) . prepareStatement ( com . dremio . jdbc . PreparedStatementTest . SYS_VERSION_SQL ) ) { "<AssertPlaceHolder>" ; } } getQueryTimeout ( ) { throwIfClosed ( ) ; return super . getQueryTimeout ( ) ; }
org . junit . Assert . assertThat ( statement . getQueryTimeout ( ) , org . hamcrest . CoreMatchers . equalTo ( 0 ) )
iterator ( ) { super . iterator ( ) ; org . eclipse . collections . api . list . MutableList < java . lang . String > collection = Lists . mutable . of ( ) ; for ( java . lang . String eachValue : this . classUnderTest ( ) ) { collection . add ( eachValue ) ; } "<AssertPlaceHolder>" ; } newListWith ( E [ ] ) { return n...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( "1" ) , collection )
testPackageNameValidation ( ) { try ( org . jboss . forge . addon . ui . controller . CommandController controller = testHarness . createCommandController ( org . jboss . forge . addon . parser . java . ui . validators . TestCommand . class ) ) { controller . initialize ( ) ; controller . setValueFor ( "className" , "T...
org . junit . Assert . assertFalse ( controller . isValid ( ) )
testCleanAccesskeyFromJsonObjectWithMultiplePasswords ( ) { final java . lang . String input = "{\"description\":\"foo\"}],\"accesskey\":\"bar\",\"nic\":[{\"accesskey\":\"bar2\",\"id\":\"1\"}]}" ; final java . lang . String expected = "{\"description\":\"foo\"}],\"nic\":[{\"id\":\"1\"}]}" ; final java . lang . String r...
org . junit . Assert . assertEquals ( result , expected )
should_return_401_after_providing_refresh_token_of_unexisting_user ( ) { java . lang . Long userId = NON_EXISTING_USER_ID ; com . devicehive . resource . Set < java . lang . String > actions = new com . devicehive . resource . HashSet ( ) ; actions . add ( "string" ) ; com . devicehive . resource . Set < java . lang . ...
org . junit . Assert . assertNull ( jwtToken . getAccessToken ( ) )
testGetNode ( ) { net . holmes . core . business . configuration . model . ConfigurationNode node = new net . holmes . core . business . configuration . model . ConfigurationNode ( "id" , "label" , "path" ) ; net . holmes . core . common . event . ConfigurationEvent event = buildConfigurationEvent ( node ) ; "<AssertPl...
org . junit . Assert . assertEquals ( event . getNode ( ) , node )
testBindingMaxBericht ( ) { java . lang . String xml = leesBestand ( "afstamming_InschrijvingAangifteGeboorte_Bijhouding_v0001_MAX.xml" ) ; valideerOutputTegenSchema ( xml ) ; nl . bzk . brp . business . dto . bijhouding . AbstractBijhoudingsBericht bericht = unmarshalObject ( xml ) ; "<AssertPlaceHolder>" ; checkStuur...
org . junit . Assert . assertNotNull ( bericht )
testCreateReviewOfSystemsSectionIHEBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . cdt . ReviewOfSystemsSectionIHE > sectionBuilder = org . openhealthtools . mdht . uml . cda . cdt . builder . CDTBuilderFactory . createReviewOfSystemsSection...
org . junit . Assert . assertNotNull ( section )
testLowerBoundsTimeoutConfig ( ) { int lowerBoundTimeout = 2 ; configuration . setTimeout ( lowerBoundTimeout ) ; "<AssertPlaceHolder>" ; } getTimeout ( ) { return timeout ; }
org . junit . Assert . assertThat ( configuration . getTimeout ( ) , org . hamcrest . core . Is . is ( lowerBoundTimeout ) )
deepstubsTest2 ( ) { com . rhwayfun . springboot . quickstart . mockito . stubbing . StubbingTest . Account account = mock ( com . rhwayfun . springboot . quickstart . mockito . stubbing . StubbingTest . Account . class ) ; com . rhwayfun . springboot . quickstart . mockito . stubbing . StubbingTest . RailwayTicket rai...
org . junit . Assert . assertEquals ( "Beijing" , account . getRailwayTicket ( ) . getDestination ( ) )
testCreateWithEmptyAmqpValue ( ) { org . apache . qpid . proton . message . Message message = Message . Factory . create ( ) ; message . setBody ( new org . apache . qpid . proton . amqp . messaging . AmqpValue ( null ) ) ; org . apache . qpid . jms . provider . amqp . message . AmqpJmsTextMessageFacade amqpTextMessage...
org . junit . Assert . assertEquals ( "TEST" , amqpTextMessageFacade . getText ( ) )
testBindingBerichtMinInGroep ( ) { java . lang . String xml = leesBestand ( "afstamming_InschrijvingAangifteGeboorte_Bijhouding_v0001_MIN-groepNiveau.xml" ) ; valideerTegenSchema ( xml ) ; nl . bzk . brp . business . dto . bijhouding . BijhoudingsBericht bericht = unmarshalObject ( xml ) ; "<AssertPlaceHolder>" ; } unm...
org . junit . Assert . assertNotNull ( bericht )
testSendNotCompleted ( ) { final java . lang . String messageId = "testSendNotCompleted" ; final com . arjuna . webservices11 . wsarj . InstanceIdentifier instanceIdentifier = new com . arjuna . webservices11 . wsarj . InstanceIdentifier ( "10" ) ; javax . xml . ws . wsaddressing . W3CEndpointReference endpoint = com ....
org . junit . Assert . assertTrue ( details . hasNotCompleted ( ) )
testLijstControleEenNok ( ) { setup ( java . util . Collections . emptyList ( ) , true , true , false , true , true , true ) ; "<AssertPlaceHolder>" ; } setup ( java . util . List , boolean , boolean , boolean , boolean , boolean , boolean ) { org . mockito . Mockito . when ( plZoekerOpAnummerEnNietFoutiefOpgeschortObv...
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testSelectMultipleOptions ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . html . SelectTest . url ) ; org . finra . jtaf . ewd . widget . element . html . Select s = new org . finra . jtaf . ewd . widget . element . html . Select ( selectMultipleLocator ) ; java . util . List < java . lang . String > op...
org . junit . Assert . assertEquals ( options , s . getSelectedOptions ( ) )
testGet ( ) { headers . delegate ( ) . add ( "header" , "value" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return new io . netty . handler . codec . http . DefaultHttpRequest ( io . netty . handler . codec . http . HttpVersion . HTTP_1_1 , io . netty . handler . codec . http . HttpMethod . GET , path ...
org . junit . Assert . assertEquals ( "value" , headers . get ( "header" ) )
testIsOmniAdminWithGroupAdmin ( ) { _user = com . liferay . portal . kernel . test . util . UserTestUtil . addGroupAdminUser ( _group ) ; com . liferay . portal . kernel . security . permission . PermissionChecker permissionChecker = _permissionCheckerFactory . create ( _user ) ; "<AssertPlaceHolder>" ; } isOmniadmin (...
org . junit . Assert . assertFalse ( permissionChecker . isOmniadmin ( ) )
testSetArrowStyleListKONotSameSize ( ) { final java . util . List < net . sf . latexdraw . model . api . shape . ArrowStyle > vals = java . util . Arrays . asList ( arr1 . getArrowStyle ( 0 ) , arr2 . getArrowStyle ( 0 ) ) ; group . setArrowStyleList ( java . util . Arrays . asList ( java . util . Optional . of ( Arrow...
org . junit . Assert . assertEquals ( vals , java . util . Arrays . asList ( arr1 . getArrowStyle ( 0 ) , arr2 . getArrowStyle ( 0 ) ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( syncDLObjects . isEmpty ( ) )
refreshWhenKeyIsNotSet ( ) { "<AssertPlaceHolder>" ; } refresh ( ) { org . junit . Assert . assertThat ( ref . refresh ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . nullValue ( ) ) ) ; org . slim3 . datastore . model . Hoge hoge = new org . slim3 . datastore . model . Hoge ( ) ; org . slim3...
org . junit . Assert . assertThat ( ref . refresh ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . nullValue ( ) ) )
testGetOutboundSseEventGetTypeNull ( ) { javax . ws . rs . sse . OutboundSseEvent outboundSseEvent = new org . jboss . resteasy . plugins . providers . sse . OutboundSseEventImpl . BuilderImpl ( ) . comment ( "comment" ) . build ( ) ; "<AssertPlaceHolder>" ; } getType ( ) { return type ; }
org . junit . Assert . assertEquals ( null , outboundSseEvent . getType ( ) )
test_update_ignore_null ( ) { dao . create ( org . nutz . dao . test . meta . Pet . class , true ) ; final org . nutz . dao . test . meta . Pet pet = org . nutz . dao . test . meta . Pet . create ( "XiaoBai" ) . setAge ( 20 ) ; dao . insert ( pet ) ; org . nutz . dao . FieldFilter . create ( org . nutz . dao . test . m...
org . junit . Assert . assertEquals ( "XiaoBai" , p2 . getName ( ) )
nullToSetPosPoint ( ) { image = createSequentialImage ( org . jaitools . imageutils . iterator . SimpleIteratorTest . WIDTH , org . jaitools . imageutils . iterator . SimpleIteratorTest . HEIGHT , 1 ) ; iter = new org . jaitools . imageutils . iterator . SimpleIterator ( image , null , org . jaitools . imageutils . ite...
org . junit . Assert . assertTrue ( gotEx )
shouldParseQueryWithUnqualifiedPathInSelectOfJcrSql2Query ( ) { java . lang . String sql = "select<sp>[jcr:primaryType],<sp>[jcr:path]<sp>FROM<sp>[nt:base]" ; javax . jcr . query . Query query = session . getWorkspace ( ) . getQueryManager ( ) . createQuery ( sql , Query . JCR_SQL2 ) ; javax . jcr . query . QueryResult...
org . junit . Assert . assertNotNull ( row . getValue ( "jcr:primaryType" ) )
toImmutable ( ) { super . toImmutable ( ) ; org . eclipse . collections . api . stack . primitive . ImmutableBooleanStack expected = this . classUnderTest ( ) ; "<AssertPlaceHolder>" ; } toImmutable ( ) { return this ; }
org . junit . Assert . assertSame ( expected , expected . toImmutable ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . dynamic . data . lists . model . DDLRecordSetVersion > ddlRecordSetVersions = _persistenc...
org . junit . Assert . assertTrue ( ddlRecordSetVersions . isEmpty ( ) )
testProcessGAV ( ) { java . io . File spring = org . owasp . dependencycheck . BaseTest . getResourceAsFile ( this , "spring-security-web-3.0.0.RELEASE.jar" ) ; org . owasp . dependencycheck . dependency . Dependency dependency = new org . owasp . dependencycheck . dependency . Dependency ( spring ) ; dependency . addV...
org . junit . Assert . assertEquals ( 1 , dependency . getVulnerableSoftwareIdentifiers ( ) . size ( ) )
testConvertTextMessageToAmqpMessageWithNoBodyOriginalEncodingWasNull ( ) { org . apache . activemq . artemis . protocol . amqp . converter . jms . ServerJMSMessage outbound = createMessage ( ) ; outbound . setShortProperty ( org . apache . activemq . artemis . protocol . amqp . converter . AMQPMessageSupport . JMS_AMQP...
org . junit . Assert . assertNull ( amqp . getBody ( ) )
testGetOutOfBounds ( ) { java . sql . Statement stmt = con . createStatement ( ) ; java . sql . ResultSet rs = stmt . executeQuery ( "SELECT<sp>id<sp>FROM<sp>testrs" ) ; "<AssertPlaceHolder>" ; try { rs . getInt ( ( - 9 ) ) ; } catch ( java . sql . SQLException sqle ) { } try { rs . getInt ( 1000 ) ; } catch ( java . s...
org . junit . Assert . assertTrue ( rs . next ( ) )
test8 ( ) { org . evosuite . Properties . CLIENT_ON_THREAD = true ; org . evosuite . Properties . PRINT_TO_SYSTEM = true ; org . evosuite . Properties . TIMEOUT = 5000000 ; org . evosuite . testcase . DefaultTestCase tc = org . evosuite . symbolic . SymbolicObserverTest . build_test_input_8 ( ) ; System . out . println...
org . junit . Assert . assertEquals ( 0 , branch_conditions . size ( ) )
getResource ( ) { it . reply . orchestrator . dal . entity . Deployment deployment = it . reply . orchestrator . controller . ControllerTestUtils . createDeployment ( ) ; it . reply . orchestrator . dal . entity . Resource expectedResource = it . reply . orchestrator . controller . ControllerTestUtils . createResource ...
org . junit . Assert . assertEquals ( expectedResource , actualResource )
newInstancePartitions ( ) { java . lang . String eventId = "eventID" ; org . apache . hadoop . fs . Path sourceBaseLocation = new org . apache . hadoop . fs . Path ( "source" ) ; org . apache . hadoop . fs . Path replicaLocation = new org . apache . hadoop . fs . Path ( "replica" ) ; java . util . Map < java . lang . S...
org . junit . Assert . assertNotNull ( copier )
fetchModeJoinHql ( ) { persistBooks ( ( ) -> new com . example . entities . BookFetchModeJoin ( ) ) ; System . out . println ( "FetchMode.JOIN<sp>HQL" ) ; java . util . List books = getCurrentSession ( ) . createQuery ( "select<sp>b<sp>from<sp>BookFetchModeJoin<sp>b" ) . list ( ) ; "<AssertPlaceHolder>" ; } getCurrentS...
org . junit . Assert . assertEquals ( 4 , books . size ( ) )
testIsLastSubscription_TwoTechnicalProducts ( ) { runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . domobjects . Override public org . oscm . domobjects . Void call ( ) throws org . oscm . domobjects . Exception { supplier = org . oscm . test . data . Organizations . createOrga...
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 1 ) , result )
testCopyDynAny ( ) { java . lang . String msg ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynArray dynAny = null ; org . omg . DynamicAny . DynArray dynAny2 = null ; tc = org . jacorb . test . ArrayTypeHelper . type ( ) ; dynAny = createDynAnyFromTypeCode ( tc ) ; dynAny2 = ( ( org . omg . Dynam...
org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) )
testComputeAnomalyScorePerfectMatch ( ) { java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap ( ) ; params . put ( org . numenta . nupic . algorithms . Anomaly . KEY_MODE , Mode . PURE ) ; org . numenta . nupic . algorithms . Anomaly anomalyComputer = org . numenta . nup...
org . junit . Assert . assertEquals ( 0.0 , score , 0 )
httpGetWithFilterTest ( ) { java . lang . String queryString = "lastName~eq~Tian~and~address.city~eq~Dallas" ; com . jontian . demo . ResponseEntity < com . jontian . demo . db . Person [ ] > resp = restTemplate . getForEntity ( ( "/persons?filter=" + queryString ) , com . jontian . demo . db . Person [ ] . class ) ; c...
org . junit . Assert . assertTrue ( ( ( persons . length ) > 0 ) )
parseMvnUrlWithDefaultDomainAndExeType ( ) { java . net . URI seen = com . facebook . buck . file . downloader . impl . MavenUrlDecoder . toHttpUrl ( java . util . Optional . of ( "http://foo.bar" ) , new java . net . URI ( "mvn:org.apache.karaf:apache-karaf:exe:3.0.8" ) ) ; java . net . URI expected = new java . net ....
org . junit . Assert . assertEquals ( expected , seen )
testConcurrency ( ) { final org . apache . bookkeeper . bookie . SkipListArena arena = new org . apache . bookkeeper . bookie . SkipListArena ( cfg ) ; final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 10 ) ; final java . util . concurrent . ConcurrentLinkedQueue < ...
org . junit . Assert . assertEquals ( expectedOff , buf . alloc . getOffset ( ) )
testNotRIntersectionNotT ( ) { org . antlr . misc . IntervalSet s = org . antlr . misc . IntervalSet . of ( 0 , 's' ) ; s . add ( 'u' , 200 ) ; org . antlr . misc . IntervalSet s2 = org . antlr . misc . IntervalSet . of ( 0 , 'q' ) ; s2 . add ( 's' , 200 ) ; java . lang . String expecting = "{0..113,<sp>115,<sp>117..20...
org . junit . Assert . assertEquals ( result , expecting )
listByConsumerTestEmpty ( ) { org . candlepin . model . Consumer consumer = new org . candlepin . model . Consumer ( "testConsumer" , "testUser" , owner , ct ) ; consumerCurator . create ( consumer ) ; java . util . List < org . candlepin . model . GuestId > result = curator . listByConsumer ( consumer ) . list ( ) ; "...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
asSetFromShouldWork ( ) { java . util . Set < java . lang . String > s = org . alfresco . module . org_alfresco_module_rm . test . util . FPUtils . asSetFrom ( ( ) -> "hello" , ( ) -> "hello" , ( ) -> "world" , ( ) -> { java . lang . String s1 = "wo" ; java . lang . String s2 = "rld" ; return s1 + s2 ; } ) ; "<AssertPl...
org . junit . Assert . assertEquals ( new java . util . HashSet ( asList ( "hello" , "world" ) ) , s )
testSendMessage ( ) { tech . aroma . thrift . application . service . SendMessageResponse result = instance . sendMessage ( request ) ; "<AssertPlaceHolder>" ; verify ( sendMessageOperation ) . process ( request ) ; } sendMessage ( tech . aroma . application . service . SendMessageRequest ) { checkThat ( request ) . is...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( response ) )
loadPropertiesFromFile ( ) { final java . io . File file = java . io . File . createTempFile ( "test" , ".properties" ) ; org . apache . commons . io . FileUtils . writeStringToFile ( file , "a=b\nc=d\n" ) ; final java . util . Properties properties = com . cloud . utils . PropertiesUtil . loadFromFile ( file ) ; "<Ass...
org . junit . Assert . assertEquals ( "b" , properties . get ( "a" ) )
testBuildWithDisabledSecurityConstraintWithOrderBy ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . department . contact . DepartmentContact context = new org . lnu . is . domain . department . contact . DepartmentContact ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . paginati...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
equals_differentTerminal ( ) { com . icantrap . collections . dawg . Node lhs = new com . icantrap . collections . dawg . Node ( 'x' ) ; lhs . terminal = true ; com . icantrap . collections . dawg . Node rhs = new com . icantrap . collections . dawg . Node ( 'y' ) ; rhs . terminal = false ; "<AssertPlaceHolder>" ; } eq...
org . junit . Assert . assertFalse ( lhs . equals ( rhs ) )
testUnknown ( ) { java . util . Optional < java . lang . Boolean > actual = org . openhab . io . transport . modbus . ModbusBitUtilities . translateCommand2Boolean ( IncreaseDecreaseType . INCREASE ) ; "<AssertPlaceHolder>" ; } is ( org . eclipse . smarthome . core . thing . ThingTypeUID ) { return thingTypeUID . equal...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( java . util . Optional . empty ( ) ) ) )
testGetBlackList ( ) { com . jonnyliu . proj . wechat . service . user . GetUserBlackListResponse userBlackList = wechatUserService . getUserBlackList ( null ) ; "<AssertPlaceHolder>" ; } getUserBlackList ( java . lang . String ) { com . jonnyliu . proj . wechat . service . user . AccessTokenBean accessToken = checkAcc...
org . junit . Assert . assertNotNull ( userBlackList )
testDestinationNull ( ) { com . liferay . portal . search . web . internal . search . bar . portlet . SearchBarPortletDisplayBuilder searchBarPortletDisplayBuilder = createSearchBarPortletDisplayBuilder ( ) ; searchBarPortletDisplayBuilder . setDestination ( null ) ; com . liferay . portal . search . web . internal . s...
org . junit . Assert . assertFalse ( searchBarPortletDisplayContext . isDestinationUnreachable ( ) )
givenInlineDynamicProxy_thenGetWorksOtherMethodsDoNot ( ) { java . util . Map proxyInstance = ( ( java . util . Map ) ( java . lang . reflect . Proxy . newProxyInstance ( com . baeldung . dynamicproxy . DynamicProxyIntegrationTest . class . getClassLoader ( ) , new java . lang . Class [ ] { java . util . Map . class } ...
org . junit . Assert . assertEquals ( 42 , result )
deveObterValorTotalTributosComoSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImposto imposto = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImposto ( ) ; final java . lang . String valorTotalTributos = "999999999999.99" ; imposto . setVal...
org . junit . Assert . assertEquals ( valorTotalTributos , imposto . getValorTotalTributos ( ) )
simpleTest ( ) { ru . yandex . qatools . allure . storages . TestCaseStorage storage = new ru . yandex . qatools . allure . storages . TestCaseStorage ( ) ; ru . yandex . qatools . allure . model . TestCaseResult testCase = storage . get ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( testCase == ( storage . get ( ) ) ) )
getRootDirectories ( ) { java . nio . file . Path pathToTest = java . nio . file . Paths . get ( hdfs . jsr203 . TestFileSystem . clusterUri ) ; "<AssertPlaceHolder>" ; } getFileSystem ( ) { return this . hdfs ; }
org . junit . Assert . assertNotNull ( pathToTest . getFileSystem ( ) . getRootDirectories ( ) )
testLoadPEMPublicKey ( ) { logger . info ( LinShareTestConstants . BEGIN_TEST ) ; com . google . common . io . ByteSource asByteSource = com . google . common . io . Files . asByteSource ( new java . io . File ( pemPEMPublicKeyPath ) ) ; java . security . interfaces . RSAPublicKey pubKey = org . linagora . linshare . c...
org . junit . Assert . assertNotNull ( pubKey )
withTwo ( ) { "<AssertPlaceHolder>" ; } debug ( int ) { return ( n & ( n - 1 ) ) == 0 ; }
org . junit . Assert . assertTrue ( s . debug ( 2 ) )
verifyStapANaluLengths_OneMinSizedNal_ShouldPass ( ) { "<AssertPlaceHolder>" ; } buildAndVerifyStapA ( int [ ] , int ) { return buildAndVerifyStapA ( naluSizes , offset , packetLength ( naluSizes ) ) ; }
org . junit . Assert . assertTrue ( buildAndVerifyStapA ( new int [ ] { 0 } , 1 ) )
testEldaURLURI ( ) { java . net . URI u = new java . net . URI ( "http://foo.bar.com/fubar?_abc=def" ) ; com . epimorphics . lda . renderers . common . EldaURL eu = new com . epimorphics . lda . renderers . common . EldaURL ( u ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( eu )
testAllNulls ( ) { org . nuxeo . elasticsearch . config . ElasticSearchClientConfig config = new org . nuxeo . elasticsearch . config . ElasticSearchClientConfig ( ) ; config . options . put ( "addressList" , "localhost:9200" ) ; config . options . put ( ESRestClientFactory . AUTH_USER_OPT , null ) ; config . options ....
org . junit . Assert . assertNotNull ( esClient )
testSorteerVolgordeBetrokkenPersoon ( ) { final nl . bzk . brp . domain . leveringmodel . Actie actieInhoud = nl . bzk . brp . domain . leveringmodel . TestVerantwoording . maakActie ( 1 , nl . bzk . brp . domain . leveringmodel . helper . TestDatumUtil . gisteren ( ) ) ; final nl . bzk . brp . domain . leveringmodel ....
org . junit . Assert . assertEquals ( 1 , compare )