input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldThrowExceptionFromVisitFileFailed ( ) { java . io . IOException exception = new java . io . IOException ( ) ; try { org . neo4j . io . fs . FileVisitors . throwExceptions ( wrapped ) . visitFileFailed ( null , exception ) ; org . junit . Assert . fail ( "Expected<sp>exception" ) ; } catch ( java . lang . Exceptio...
org . junit . Assert . assertThat ( e , org . hamcrest . Matchers . is ( exception ) )
testGetParametersWithDefaultEntity ( ) { org . lnu . is . domain . department . type . DepartmentType entity = new org . lnu . is . domain . department . type . DepartmentType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lan...
org . junit . Assert . assertEquals ( expected , actual )
shouldReturnEmptyListWhenPropertyNotClosed ( ) { final com . lewisd . maven . lint . model . VersionProperty versionProperty = new com . lewisd . maven . lint . model . VersionProperty ( "${property" ) ; "<AssertPlaceHolder>" ; } getPropertyNames ( ) { java . util . List < java . lang . String > propertyNames = new jav...
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , versionProperty . getPropertyNames ( ) )
testPreviousAbsentValueEmpty ( ) { org . roaringbitmap . ArrayContainer container = new org . roaringbitmap . ArrayContainer ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { "<AssertPlaceHolder>" ; } } previousAbsentValue ( int ) { long prevAbsentBit = computePreviousAbsentValue ( fromValue ) ; assert prevAbsentBit <= 42949...
org . junit . Assert . assertEquals ( i , container . previousAbsentValue ( ( ( short ) ( i ) ) ) )
testOFPFlowActionGroupActionInteger ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionGroupAction target = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionGroupAction ( 1234 ) ; "<AssertPlaceHolder>" ; } getGroupId ( ) { return groupId ...
org . junit . Assert . assertThat ( target . getGroupId ( ) , org . hamcrest . CoreMatchers . is ( new java . lang . Integer ( 1234 ) ) )
testJoinAllEmptyElements ( ) { java . util . Set < java . lang . String > elements = new java . util . LinkedHashSet < java . lang . String > ( ) ; java . lang . String separator = "," ; elements . add ( "" ) ; elements . add ( "" ) ; java . lang . String join = org . ebaysf . web . cors . CORSFilter . join ( elements ...
org . junit . Assert . assertTrue ( "" . equals ( join ) )
test31 ( ) { org . demoiselle . jee . core . api . security . DemoiselleUser result = instance . clone ( ) ; "<AssertPlaceHolder>" ; } getIdentity ( ) { return identity ; }
org . junit . Assert . assertEquals ( instance . getIdentity ( ) , result . getIdentity ( ) )
testCompletion ( ) { test . SRA . LinkedList < java . lang . Character > registers = new test . SRA . LinkedList < java . lang . Character > ( ) ; registers . add ( 'a' ) ; registers . add ( 'a' ) ; registers . add ( 'b' ) ; theory . characters . CharPred abPred = ba . MkOr ( new theory . characters . CharPred ( 'a' ) ...
org . junit . Assert . assertTrue ( svSRA . isLanguageEquivalent ( svSRA , ba , Long . MAX_VALUE ) )
testIsInternalURL_HTTP ( ) { java . lang . String serviceAccessURL = "http://localhost:8080/oscm-portal/admin/subscriptions.jsp" ; boolean result = model . isInternalURL ( serviceAccessURL ) ; "<AssertPlaceHolder>" ; } isInternalURL ( java . lang . String ) { if ( ( serviceAccessURL == null ) || ( ( serviceAccessURL . ...
org . junit . Assert . assertTrue ( result )
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 ( userTrackers . isEmpty ( ) )
testDistributionClone ( ) { final long seed = 123 ; org . apache . commons . rng . simple . RandomSource source = org . apache . commons . rng . simple . RandomSource . WELL_512_A ; org . apache . commons . statistics . distribution . ContinuousDistribution . Sampler origSampler = distribution . createSampler ( org . a...
org . junit . Assert . assertEquals ( origSampler . sample ( ) , clonedSampler . sample ( ) , 0.0 )
convertFromLocalTime ( ) { java . util . Date date = io . atlasmap . converters . DateTimeHelper . convertLocalTimeToDate ( java . time . LocalTime . now ( ) , null ) ; "<AssertPlaceHolder>" ; } convertLocalTimeToDate ( java . time . LocalTime , java . lang . String ) { return java . util . Date . from ( localTime . at...
org . junit . Assert . assertNotNull ( date )
findInitVullingAfnemersindicatieEmpty ( ) { final javax . persistence . TypedQuery < nl . bzk . migratiebrp . init . logging . model . domein . entities . InitVullingAfnemersindicatie > query = org . mockito . Mockito . mock ( javax . persistence . TypedQuery . class ) ; org . mockito . Mockito . when ( em . createQuer...
org . junit . Assert . assertNull ( subject . findInitVullingAfnemersindicatie ( "0000000001" ) )
andSeparatedByOrLowerCaseWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String subQueryJPQL = "select<sp>sub.id<sp>from<sp>RegularEntityOne<sp>sub<sp>where<sp>(lower(sub.stringAttribute)<sp>=<sp>'just<sp>a<sp>string<sp>02'<sp>and<sp>sub.longAttributeOne<sp>=<sp>33)<sp>or<sp>(sub.booleanAttributeTwo<s...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
testPostBookAdminWithClaims ( ) { java . lang . String address = ( "https://localhost:" + ( org . apache . cxf . systest . jaxrs . security . saml . JAXRSSamlAuthorizationTest . PORT ) ) + "/saml-claims/bookstore/books" ; java . util . Map < java . lang . String , java . lang . Object > props = new java . util . HashMa...
org . junit . Assert . assertEquals ( 125L , book . getId ( ) )
negativeLimitImpliesNoLimit ( ) { org . sonatype . nexus . orient . entity . STORAGE_TRACK_CHANGED_RECORDS_IN_WAL . setValue ( true ) ; java . lang . System . setProperty ( org . sonatype . nexus . orient . entity . EntityLog . ENTITY_LOG_LIMIT_KEY , "-1" ) ; org . sonatype . nexus . orient . entity . EntityLog log = n...
org . junit . Assert . assertThat ( log . since ( mark ) . size ( ) , org . hamcrest . Matchers . is ( 1024 ) )
tree_iter_0_04 ( ) { int [ ] keys = new int [ ] { 1 , 2 , 3 , 4 , 5 } ; org . apache . jena . dboe . index . RangeIndex rIndex = makeRangeIndex ( 5 ) ; org . apache . jena . dboe . index . test . IndexTestLib . add ( rIndex , keys ) ; java . util . List < java . lang . Integer > x = toIntList ( rIndex . iterator ( r ( ...
org . junit . Assert . assertEquals ( expected , x )
member_hashCode_equalsForEqualObjects ( ) { com . eclipsesource . json . JsonObject . Member member = new com . eclipsesource . json . JsonObject . Member ( "a" , Json . TRUE ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { return offset ; }
org . junit . Assert . assertTrue ( ( ( member . hashCode ( ) ) == ( new com . eclipsesource . json . JsonObject . Member ( "a" , Json . TRUE ) . hashCode ( ) ) ) )
testQueryAllObjects ( ) { final com . zupcat . dao . List < com . zupcat . sample . User > allUsers = userDAO . getAll ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return getList ( ) . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( allUsers . isEmpty ( ) )
debieraActualizarColegio ( ) { log . debug ( "Debiera<sp>actualizar<sp>colegio" ) ; mx . edu . um . mateo . colportor . model . ColegioColportor colegio = new mx . edu . um . mateo . colportor . model . ColegioColportor ( mx . edu . um . mateo . general . utils . Constantes . NOMBRE , mx . edu . um . mateo . general . ...
org . junit . Assert . assertNotNull ( colegio )
testSetValueDate ( ) { java . util . Date date = new java . util . Date ( ) ; @ org . apache . servicecomb . common . rest . codec . param . SuppressWarnings ( "deprecation" ) java . lang . String strDate = com . fasterxml . jackson . databind . util . ISO8601Utils . format ( date , true ) ; createClientRequest ( ) ; o...
org . junit . Assert . assertEquals ( strDate , headers . get ( "h1" ) )
testGetPath ( ) { when ( instanceMeta . getPath ( ) ) . thenReturn ( "/some/path" ) ; com . oberasoftware . jasdb . engine . DBInstanceImpl dbInstance = new com . oberasoftware . jasdb . engine . DBInstanceImpl ( storageServiceFactory , metadataStore , instanceMeta ) ; "<AssertPlaceHolder>" ; } getPath ( ) { return thi...
org . junit . Assert . assertThat ( dbInstance . getPath ( ) , org . hamcrest . core . Is . is ( "/some/path" ) )
testNotEmptyMap ( ) { com . twelvemonkeys . lang . Map < java . lang . Integer , ? > map = new com . twelvemonkeys . lang . HashMap < java . lang . Integer , java . lang . Object > ( ) { { put ( 1 , null ) ; put ( 2 , null ) ; } } ; "<AssertPlaceHolder>" ; } notEmpty ( T extends com . twelvemonkeys . lang . CharSequenc...
org . junit . Assert . assertSame ( map , com . twelvemonkeys . lang . Validate . notEmpty ( map ) )
bindsSingletonResource ( ) { org . everrest . core . impl . ResourceBinderImplTest . EchoResource resource = new org . everrest . core . impl . ResourceBinderImplTest . EchoResource ( ) ; resourceBinder . addResource ( resource , new javax . ws . rs . core . MultivaluedHashMap ( ) ) ; org . everrest . core . ObjectFact...
org . junit . Assert . assertSame ( resource , resourceFactory . getInstance ( mock ( org . everrest . core . ApplicationContext . class ) ) )
testNewBond_arrayIAtom ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IBond bond = builder . newInstance ( org . openscience . cdk . interfaces . IBond . class , ( ( ...
org . junit . Assert . assertNotNull ( bond )
when_setHzConfig_thenReturnsHzConfig ( ) { com . hazelcast . jet . config . JetConfig jetConfig = new com . hazelcast . jet . config . JetConfig ( ) ; com . hazelcast . config . Config hzConfig = new com . hazelcast . config . Config ( ) ; jetConfig . setHazelcastConfig ( hzConfig ) ; "<AssertPlaceHolder>" ; } getHazel...
org . junit . Assert . assertEquals ( hzConfig , jetConfig . getHazelcastConfig ( ) )
testOK ( ) { new org . oscm . app . business . APPlatformControllerFactory ( ) ; context . bind ( ( ( org . oscm . app . v2_0 . intf . APPlatformController . JNDI_PREFIX ) + "test.controller" ) , org . mockito . Mockito . mock ( org . oscm . app . v2_0 . intf . APPlatformController . class ) ) ; org . oscm . app . v2_0...
org . junit . Assert . assertTrue ( ( instance instanceof org . oscm . app . adapter . APPlatformControllerAdapter ) )
mkString_A$String_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . String > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( emptyList ) ; java . lang . String sep = "-" ; java . lang . String actual = seq . mkString ( sep ) ; java . lang . String expected = "" ; "<AssertPlaceHolder>" ; } mkString ( java ....
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testEmptyIsNull ( ) { java . util . Map < java . lang . String , java . lang . String > attributes = new java . util . HashMap ( ) ; java . io . ByteArrayOutputStream output = new java . io . ByteArrayOutputStream ( ) ; serializer . serialize ( attributes , output ) ; output . flush ( ) ; java . util . Map < java . lan...
org . junit . Assert . assertNull ( result )
progress_of_a_nearly_finished_job_should_be_100 ( ) { view = a ( jobView ( ) . of ( a ( job ( ) . whereTheLast ( build ( ) . isStillBuilding ( ) . startedAt ( "12:00:00" ) . and ( ) . usuallyTakes ( 0 ) ) ) ) . assuming ( currentTime ( ) . is ( "12:00:00" ) ) ) ; "<AssertPlaceHolder>" ; } progress ( ) { return lastBuil...
org . junit . Assert . assertThat ( view . progress ( ) , org . hamcrest . core . Is . is ( 100 ) )
testGetTypedPropertyOfTypeAny ( ) { com . orientechnologies . orient . core . record . impl . ODocument doc = new com . orientechnologies . orient . core . record . impl . ODocument ( "TestClass" ) ; java . lang . Integer setValue = 15 ; doc . setProperty ( "TestPropAny" , setValue ) ; com . orientechnologies . orient ...
org . junit . Assert . assertEquals ( setValue , value )
shouldGetANCRegisterForAGivenANM ( ) { org . ei . drishti . domain . Mother mother = new org . ei . drishti . domain . Mother ( "thayi<sp>card<sp>number<sp>1" 2 , "householdAddress" 1 , "thayi<sp>card<sp>number<sp>1" ) . withLMP ( org . joda . time . LocalDate . parse ( "thayi<sp>card<sp>number<sp>1" 7 ) ) . withDetail...
org . junit . Assert . assertEquals ( expectedRegister , register )
shouldNotIndentedWhenEnvironmentReturnsFalse ( ) { when ( environment . supports ( br . com . caelum . vraptor . serialization . JSONSerialization . ENVIRONMENT_INDENTED_KEY ) ) . thenReturn ( false ) ; serialization . init ( ) ; java . lang . String expectedResult = "{\"order\":{\"price\":15.0,\"comments\":\"pack<sp>i...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . ihe . operations . DischargeDiagnosisSectionOperations obj = new org . openhealthtools . mdht . uml . cda . ihe . operations . DischargeDiagnosisSectionOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
should_not_collapse_adjacent_single_kmer_width ( ) { java . util . List < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > in = new java . util . ArrayList < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > ( ) ; in . add ( new au . edu . wehi . idsv . debruijn . positional . KmerPathNode ...
org . junit . Assert . assertEquals ( 2 , list . size ( ) )
testParseSimpleTextWithItalicTextInMultipleLines ( ) { com . liferay . wiki . engine . creole . internal . parser . ast . WikiPageNode wikiPageNode = getWikiPageNode ( "text-8.creole" ) ; "<AssertPlaceHolder>" ; } getWikiPageNode ( java . lang . String ) { _creole10Parser = getCreole10Parser ( fileName ) ; _creole10Par...
org . junit . Assert . assertNotNull ( wikiPageNode )
testSynchronizedPoolableFactoryPoolableObjectFactory ( ) { try { org . apache . commons . pool2 . PoolUtils . synchronizedPooledFactory ( ( ( org . apache . commons . pool2 . PooledObjectFactory < java . lang . Object > ) ( null ) ) ) ; org . junit . Assert . fail ( "PoolUtils.synchronizedPoolableFactory(PoolableObject...
org . junit . Assert . assertEquals ( expectedMethods , calledMethods )
testUnidirectionalSpdySynStreamFrame ( ) { short type = 1 ; byte flags = 2 ; int length = 10 ; int streamId = ( ( io . netty . handler . codec . spdy . SpdyFrameDecoderTest . RANDOM . nextInt ( ) ) & 2147483647 ) | 1 ; int associatedToStreamId = ( io . netty . handler . codec . spdy . SpdyFrameDecoderTest . RANDOM . ne...
org . junit . Assert . assertFalse ( buf . isReadable ( ) )
testToJSON ( ) { jstellarapi . core . DenominatedIssuedCurrency STRAmount = jstellarapi . core . DenominatedIssuedCurrency . ONE_STR ; jstellarapi . core . DenominatedIssuedCurrency STRAmount2 = new jstellarapi . core . DenominatedIssuedCurrency ( ) ; STRAmount2 . copyFrom ( STRAmount . toJSON ( ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( STRAmount , STRAmount2 )
testGetVerticalScrollPositionWhenScrollbarIsDisabled ( ) { doReturn ( emptyPanel ( ) ) . when ( gridLienzoScrollHandler ) . getScrollPanel ( ) ; final java . lang . Double position = gridLienzoScrollBars . getVerticalScrollPosition ( ) ; "<AssertPlaceHolder>" ; } getVerticalScrollPosition ( ) { final java . lang . Inte...
org . junit . Assert . assertEquals ( 0 , position , 0 )
testHLLAddHalfDistinct ( ) { java . util . Random rand = new java . util . Random ( size ) ; com . github . prasanthj . hll . HyperLogLog hll = com . github . prasanthj . hll . HyperLogLog . builder ( ) . build ( ) ; int unique = ( size ) / 2 ; java . util . Set < java . lang . Long > hashset = new java . util . HashSe...
org . junit . Assert . assertEquals ( ( ( double ) ( hashset . size ( ) ) ) , ( ( double ) ( hll . count ( ) ) ) , delta )
testGetUserPassword ( ) { org . appfuse . model . User user = dao . get ( ( - 1L ) ) ; java . lang . String password = dao . getUserPassword ( user . getUsername ( ) ) ; "<AssertPlaceHolder>" ; } getUsername ( ) { return username ; }
org . junit . Assert . assertNotNull ( password )
testGetMultiParameterWithBeginningSpaces ( ) { java . lang . String id1 = "fsdfs" ; java . lang . String id2 = "rewr" ; java . lang . String id3 = "vxcv" ; java . lang . String [ ] value = new java . lang . String [ ] { id1 , id2 , id3 } ; java . util . List < java . lang . String > expected = java . util . Arrays . < ...
org . junit . Assert . assertEquals ( expected , actual )
testPayload ( ) { java . lang . String sentPayload = "payload" ; com . google . appengine . api . taskqueue . Queue queue = com . google . appengine . api . taskqueue . QueueFactory . getDefaultQueue ( ) ; waitOnFuture ( queue . addAsync ( withPayload ( sentPayload ) ) ) ; sync ( ) ; java . lang . String receivedPayloa...
org . junit . Assert . assertEquals ( sentPayload , receivedPayload )
findVertexShouldFindTheCorrectIndex ( ) { eu . printingin3d . javascad . vrl . Vertex v = eu . printingin3d . javascad . testutils . RandomUtils . getRandomVertex ( ) ; java . util . List < eu . printingin3d . javascad . vrl . Vertex > list = new java . util . ArrayList ( ) ; list . add ( v ) ; for ( int i = 0 ; i < 20...
org . junit . Assert . assertEquals ( v , vertexMap . getVertexList ( ) . get ( i ) )
testHasLoop_loopInPrevSteps ( ) { org . pentaho . di . job . JobMeta jobMetaSpy = spy ( jobMeta ) ; org . pentaho . di . job . entry . JobEntryCopy jobEntryCopyMain = createJobEntryCopy ( "mainStep" ) ; org . pentaho . di . job . entry . JobEntryCopy jobEntryCopy2 = createJobEntryCopy ( "step2" ) ; org . pentaho . di ....
org . junit . Assert . assertFalse ( jobMetaSpy . hasLoop ( jobEntryCopyMain ) )
arraysNotEqual ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { new java . lang . Object ( ) } , new java . lang . Object [ ] { new java . lang . Object ( ) } )
test206ContainsContentLocationIfA200ResponseWouldHaveIncludedIt ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest req1 = new org . apache . hc . core5 . http . message . BasicClassicHttpRequest ( "GET" , "/" ) ; originResponse . addHeader ( "Cache-Control" , "max-age=3600" ) ; originResponse . addHeader...
org . junit . Assert . assertNotNull ( result . getFirstHeader ( "Content-Location" ) )
testInsertAt ( ) { org . dresdenocl . tools . codegen . ocl2java . types . OclSequence < java . lang . String > sequence1 ; org . dresdenocl . tools . codegen . ocl2java . types . OclSequence < java . lang . String > sequence2 ; java . lang . String object1 ; java . lang . String object2 ; java . lang . String object3 ...
org . junit . Assert . assertEquals ( sequence2 , sequence1 )
testCharacter2char ( ) { java . lang . Character cc = 'Z' ; char c = org . nutz . castor . Castors . me ( ) . castTo ( cc , char . class ) ; "<AssertPlaceHolder>" ; } castTo ( java . lang . Object , java . lang . Class ) { return cast ( src , ( null == src ? null : src . getClass ( ) ) , toType ) ; }
org . junit . Assert . assertEquals ( 'Z' , c )
testAddAtom_IAtom ( ) { org . openscience . cdk . interfaces . IStrand oStrand = ( ( org . openscience . cdk . interfaces . IStrand ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IAtom oAtom1 = oStrand . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IAtom . class , "C" ) ; or...
org . junit . Assert . assertEquals ( 2 , oStrand . getAtomCount ( ) )
testInvalidMessagesForUnformatedCpf ( ) { br . com . caelum . stella . validation . Validator < java . lang . String > validator = new br . com . caelum . stella . validation . AcceptAnyValidator ( false , br . com . caelum . stella . validation . AcceptAnyValidator . Documento . CPF ) ; java . lang . String cpf = "336...
org . junit . Assert . assertTrue ( validator . invalidMessagesFor ( cpf ) . isEmpty ( ) )
testEnumGetters ( ) { final java . util . List < java . lang . Class < ? extends java . lang . Object > > classes = nl . moderniseringgba . migratie . synchronisatie . domein . brp . kern . entity . GetterEnSetterTest . getClassesInPackage ( nl . moderniseringgba . migratie . synchronisatie . domein . brp . kern . enti...
org . junit . Assert . assertSame ( enumVeld . get ( obj ) , getterMethode . invoke ( obj ) )
testToStringNoQuota ( ) { org . apache . hadoop . fs . QuotaUsage quotaUsage = new org . apache . hadoop . fs . QuotaUsage . Builder ( ) . fileAndDirectoryCount ( 1234 ) . build ( ) ; java . lang . String expected = "<sp>none<sp>inf<sp>none" + "<sp>inf<sp>" ; "<AssertPlaceHolder>" ; } toString ( ) { if ( ( json ) == nu...
org . junit . Assert . assertEquals ( expected , quotaUsage . toString ( ) )
testCheckSimpleRequestTypeAnyOrigin ( ) { org . apache . catalina . filters . TesterHttpServletRequest request = new org . apache . catalina . filters . TesterHttpServletRequest ( ) ; request . setHeader ( CorsFilter . REQUEST_HEADER_ORIGIN , "http://www.w3.org" ) ; request . setMethod ( "GET" ) ; org . apache . catali...
org . junit . Assert . assertEquals ( CorsFilter . CORSRequestType . SIMPLE , requestType )
shouldIgnoreIfEventSourceNotPullRequestEvent ( ) { java . lang . String event = "Hi<sp>there" ; when ( eventContext . getEventSource ( ) ) . thenReturn ( event ) ; "<AssertPlaceHolder>" ; } shouldDeliverNotification ( com . nerdwin15 . stash . webhook . service . eligibility . EventContext ) { if ( ! ( com . atlassian ...
org . junit . Assert . assertTrue ( filter . shouldDeliverNotification ( eventContext ) )
testIrisRRMDSI ( ) { org . nd4j . linalg . io . ClassPathResource cpr = new org . nd4j . linalg . io . ClassPathResource ( "iris.txt" ) ; java . io . File f = cpr . getFile ( ) ; org . datavec . api . records . reader . RecordReader rr = new org . datavec . api . records . reader . impl . csv . CSVRecordReader ( ) ; rr...
org . junit . Assert . assertEquals ( expected , act )
collapseConsecutiveWhiteSpacesTest ( ) { java . lang . String toCollapse = "A<sp>B" ; java . lang . String actual = com . itextpdf . styledxmlparser . util . WhiteSpaceUtil . collapseConsecutiveSpaces ( toCollapse ) ; java . lang . String expected = "A<sp>B" ; "<AssertPlaceHolder>" ; } collapseConsecutiveSpaces ( java ...
org . junit . Assert . assertEquals ( expected , actual )
filterNot_A$Function1_Nil ( ) { com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > f = new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > ( ) { public com . m3 . scalaflavor4j . Boolean apply ( java . lang . String v1 ) { return v1 . contains ( "b" ) ; } } ; c...
org . junit . Assert . assertThat ( actual . toList ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 0 ) ) )
shouldReturnTrueWhenSchemaHasValidatorEdgePropertyFilters ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = new uk . gov . gchq . gaffer . store . schema . Schema . Builder ( ) . edge ( TestGroups . EDGE , new uk . gov . gchq . gaffer . store . schema . SchemaEdgeDefinition . Builder ( ) . propert...
org . junit . Assert . assertTrue ( result )
fromAlphaCodeWorksWithExistingValues ( ) { for ( fr . marcwrobel . jbanking . IsoCurrency currency : fr . marcwrobel . jbanking . IsoCurrency . values ( ) ) { "<AssertPlaceHolder>" ; } } fromAlphabeticCode ( java . lang . String ) { java . lang . String cleanedCode = ( code == null ) ? null : code . toUpperCase ( ) ; f...
org . junit . Assert . assertEquals ( currency , fr . marcwrobel . jbanking . IsoCurrency . fromAlphabeticCode ( currency . getAlphabeticCode ( ) ) )
testCeilDecimalInWhere ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . sql . ResultSet rs = conn . createStatement ( ) . executeQuery ( ( ( "SELECT<sp>*<sp>FROM<sp>" + ( tableName ) ) + "<sp>WHERE<sp>CEIL(\"DEC\",<sp>2)<sp>=<sp>1.27" ) ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( rs . next ( ) )
testRemembersUI ( ) { com . eclipsesource . tabris . ui . UI ui = mock ( com . eclipsesource . tabris . ui . UI . class ) ; com . eclipsesource . tabris . ui . AbstractActionTest . TestAbstractAction action = new com . eclipsesource . tabris . ui . AbstractActionTest . TestAbstractAction ( ) ; action . execute ( ui ) ;...
org . junit . Assert . assertSame ( ui , action . getUI ( ) )
testGetSecondsTime ( ) { com . bixly . pastevid . recorders . RecorderTest . log ( "getSecondsTime" ) ; com . bixly . pastevid . recorders . Recorder instance = new com . bixly . pastevid . recorders . Recorder ( null ) ; long expResult = 0L ; long result = instance . getSecondsTime ( ) ; "<AssertPlaceHolder>" ; } getS...
org . junit . Assert . assertEquals ( expResult , result )
incorrectMvnLocationPatterns ( ) { boolean exception = true ; for ( java . lang . String p : new java . lang . String [ ] { "We<sp>should<sp>fail<sp>for<sp>all<sp>broken<sp>mvn:<sp>URIs" 1 , "We<sp>should<sp>fail<sp>for<sp>all<sp>broken<sp>mvn:<sp>URIs" 3 , "mvn:groupId/artifactId/[1.2," , "mvn:groupId/artifactId/[1.2"...
org . junit . Assert . assertTrue ( "We<sp>should<sp>fail<sp>for<sp>all<sp>broken<sp>mvn:<sp>URIs" , exception )
shouldBeAbleToRetrieveAnAddedCommand ( ) { org . mafagafogigante . dungeon . commands . CommandSet commandSet = org . mafagafogigante . dungeon . commands . CommandSet . emptyCommandSet ( ) ; org . mafagafogigante . dungeon . commands . Command command = new org . mafagafogigante . dungeon . commands . Command ( "go" ,...
org . junit . Assert . assertEquals ( command , commandSet . getCommand ( "go" ) )
one_$this_elem_match_returns_false_when_no_values_in_array_match ( ) { com . redhat . lightblue . query . QueryExpression expr = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'array':'field8.nf1.$this.nnf4','elemMatch':{'field':'elemf3','op':'>','rvalue':50}}" ) ; com . redhat . lightb...
org . junit . Assert . assertFalse ( context . getResult ( ) )
completePasswordRecovery_InvalidPasswordInput ( ) { boolean result = passwordRecoverybean . completePasswordRecovery ( userId , password_4letter ) ; "<AssertPlaceHolder>" ; verify ( passwordRecoverybean , never ( ) ) . sendPasswordRecoveryMails ( eq ( pUser ) , eq ( EmailType . RECOVERPASSWORD_CONFIRM ) , urlCaptor . c...
org . junit . Assert . assertEquals ( false , result )
getSetTest ( ) { "<AssertPlaceHolder>" ; coerciveParsing . setNumberOfTagsIterator ( null ) ; } getNumberOfTagsIterator ( ) { return numberOfTags ; }
org . junit . Assert . assertNotNull ( coerciveParsing . getNumberOfTagsIterator ( ) )
testValueOf ( ) { for ( org . jscep . transaction . FailInfo failInfo : org . jscep . transaction . FailInfo . values ( ) ) { "<AssertPlaceHolder>" ; } } valueOf ( int ) { for ( org . jscep . transaction . FailInfo failInfo : org . jscep . transaction . FailInfo . values ( ) ) { if ( ( failInfo . getValue ( ) ) == valu...
org . junit . Assert . assertSame ( failInfo , org . jscep . transaction . FailInfo . valueOf ( failInfo . getValue ( ) ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoNode . class , _dynamicQueryClassLoader ) ; dynamicQuery . setPr...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testSubscriptionsGetfromApplication ( ) { org . wso2 . carbon . apimgt . rest . api . store . impl . TestUtil . printTestMethodName ( ) ; java . lang . String applicationId = java . util . UUID . randomUUID ( ) . toString ( ) ; java . lang . String subsID1 = java . util . UUID . randomUUID ( ) . toString ( ) ; java . l...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
retrieveAndValidateAclRuleTestAclRuleFound ( ) { org . mockito . Mockito . doReturn ( nextAclRuleMock ) . when ( networkAclItemDaoMock ) . findByUuid ( nextAclRuleUuid ) ; com . cloud . network . vpc . NetworkACLItemVO networkACLItemVOReceived = networkAclServiceImpl . retrieveAndValidateAclRule ( nextAclRuleUuid ) ; "...
org . junit . Assert . assertEquals ( nextAclRuleMock , networkACLItemVOReceived )
testEmptyStringReadLine ( ) { "<AssertPlaceHolder>" ; } readLine ( java . lang . String , java . util . List ) { org . eclipse . acceleo . engine . internal . evaluation . AcceleoEvaluationContext < org . eclipse . emf . ecore . EClassifier > evaluationContext = new org . eclipse . acceleo . engine . internal . evaluat...
org . junit . Assert . assertEquals ( 0 , readLine ( "" , com . google . common . collect . Lists . < java . lang . String > newArrayList ( ) ) )
testToByteArray_MinValue ( ) { de . persosim . simulator . crypto . SendSequenceCounter ssc = new de . persosim . simulator . crypto . SendSequenceCounter ( java . math . BigInteger . ZERO , 2 ) ; byte [ ] expected = de . persosim . simulator . utils . HexString . toByteArray ( "0000" ) ; "<AssertPlaceHolder>" ; } toBy...
org . junit . Assert . assertArrayEquals ( expected , ssc . toByteArray ( ) )
testSerialization ( ) { uk . ac . ebi . interpro . scan . model . Protein original = new uk . ac . ebi . interpro . scan . model . Protein ( uk . ac . ebi . interpro . scan . model . ProteinTest . GOOD ) ; original . addCrossReference ( new uk . ac . ebi . interpro . scan . model . ProteinXref ( "A0A000_9ACTO" ) ) ; ja...
org . junit . Assert . assertEquals ( originalXML , unserializedXML )
dropTableSchemaTrue ( ) { java . lang . String sql = "DROP<sp>TABLE<sp>test.t1" ; com . foundationdb . sql . aisddl . TableDDLTest . dropTable = com . foundationdb . ais . model . TableName . create ( com . foundationdb . sql . aisddl . TableDDLTest . DEFAULT_SCHEMA , com . foundationdb . sql . aisddl . TableDDLTest . ...
org . junit . Assert . assertTrue ( ( stmt instanceof com . foundationdb . sql . parser . DropTableNode ) )
calculateMappers_1Node1Reducer_1Mapper ( ) { int mappers = yarnContainerAllocator . getMaxMappers ( 1 , 1 , org . apache . hadoop . dynamodb . util . RoundRobinYarnContainerAllocatorTest . NODE_SLOTS , org . apache . hadoop . dynamodb . util . RoundRobinYarnContainerAllocatorTest . APP_MASTER_SLOTS , org . apache . had...
org . junit . Assert . assertEquals ( 1 , mappers )
testRemove ( ) { com . liferay . portal . workflow . kaleo . model . KaleoTask newKaleoTask = addKaleoTask ( ) ; _persistence . remove ( newKaleoTask ) ; com . liferay . portal . workflow . kaleo . model . KaleoTask existingKaleoTask = _persistence . fetchByPrimaryKey ( newKaleoTask . getPrimaryKey ( ) ) ; "<AssertPlac...
org . junit . Assert . assertNull ( existingKaleoTask )
openContainerFromStreamAsBDoc ( ) { org . digidoc4j . Container container = this . createEmptyContainer ( ) ; container . addDataFile ( "src/test/resources/testFiles/helper-files/test.txt" , "text/plain" ) ; org . digidoc4j . Signature signature = this . createSignatureBy ( container , this . pkcs12SignatureToken ) ; j...
org . junit . Assert . assertEquals ( 1 , containerToTest . getSignatures ( ) . size ( ) )
testStopOK ( ) { net . holmes . core . business . media . MediaManager mediaManager = createMock ( net . holmes . core . business . media . MediaManager . class ) ; net . holmes . core . business . streaming . StreamingManager streamingManager = createMock ( net . holmes . core . business . streaming . StreamingManager...
org . junit . Assert . assertNull ( result )
testResumeClasspath ( ) { java . io . File classFile = new java . io . File ( ( ( output . getCanonicalPath ( ) ) + "/classes" ) ) ; java . lang . String oldCP = java . lang . System . getProperty ( "java.class.path" ) ; env . put ( ToolConstants . CFG_OUTPUTFILE , ( ( output . getPath ( ) ) + "/hello.wsdl" ) ) ; env ....
org . junit . Assert . assertEquals ( oldCP , newCP )
testSignatureThumbprint ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . wss...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
shouldNotBeSetOnNullByObject ( ) { final java . lang . Object value = null ; "<AssertPlaceHolder>" ; } isSet ( java . lang . String ) { return ( value != null ) && ( ! ( value . isEmpty ( ) ) ) ; }
org . junit . Assert . assertThat ( isSet ( value ) , org . hamcrest . CoreMatchers . is ( false ) )
testUserSettingsFile ( ) { java . lang . String userSettingsFile = filter ( "filtering-reflective-settings" ) . getProperty ( "userSettingsFile" ) ; "<AssertPlaceHolder>" ; } filter ( java . lang . String ) { java . io . File basedir = resources . getBasedir ( project ) ; io . takari . maven . testing . executor . Mave...
org . junit . Assert . assertTrue ( ( ( userSettingsFile != null ) && ( ! ( userSettingsFile . isEmpty ( ) ) ) ) )
testReadProjectByName ( ) { com . gentics . mesh . core . rest . project . ProjectResponse project = call ( ( ) -> client ( ) . findProjectByName ( com . gentics . mesh . core . project . PROJECT_NAME ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( com . gentics . mesh . core . project . PROJECT_NAME , project . getName ( ) )
testGetStyleForMetacardFloatAttribute ( ) { java . lang . Float testFloat = java . lang . Float . valueOf ( "2.0" ) ; ddf . catalog . data . Metacard metacard = new org . codice . ddf . spatial . kml . transformer . MockMetacard ( AttributeFormat . FLOAT . toString ( ) , testFloat ) ; org . codice . ddf . spatial . kml...
org . junit . Assert . assertThat ( mapper . getStyleForMetacard ( metacard ) , org . hamcrest . Matchers . is ( org . codice . ddf . spatial . kml . transformer . KmlStyleMapTest . DEFAULT_STYLE_URL ) )
testSetScope ( ) { org . opengis . util . InternationalString result = ( ( org . geotoolkit . temporal . reference . DefaultTemporalReferenceSystem ) ( temporalReferenceSystem1 ) ) . getScope ( ) ; "<AssertPlaceHolder>" ; } getScope ( ) { if ( ( scope ) == null ) { scope = new java . util . ArrayList ( ) ; } return thi...
org . junit . Assert . assertEquals ( ( ( org . geotoolkit . temporal . reference . DefaultTemporalReferenceSystem ) ( temporalReferenceSystem1 ) ) . getScope ( ) , result )
testPeek ( ) { java . util . List < com . bazaarvoice . emodb . queue . api . Message > expected = com . google . common . collect . ImmutableList . of ( new com . bazaarvoice . emodb . queue . api . Message ( "id-1" , "payload-1" ) , new com . bazaarvoice . emodb . queue . api . Message ( "id-2" , "payload-2" ) ) ; wh...
org . junit . Assert . assertEquals ( actual , expected )
testUrlJndi ( ) { java . lang . String url = "http://www.marsupilami.com" ; com . enioka . jqm . test . helpers . CreationTools . createJndiUrl ( cnx , "url/testurl" , "test<sp>directory" , url ) ; cnx . commit ( ) ; try { java . net . URL f = ( ( java . net . URL ) ( javax . naming . spi . NamingManager . getInitialCo...
org . junit . Assert . assertEquals ( url , f . toString ( ) )
testSetGetSettingName ( ) { org . apache . ambari . server . orm . entities . BlueprintSettingEntity entity = new org . apache . ambari . server . orm . entities . BlueprintSettingEntity ( ) ; entity . setSettingName ( "component_settings" ) ; "<AssertPlaceHolder>" ; } getSettingName ( ) { return settingName ; }
org . junit . Assert . assertEquals ( "component_settings" , entity . getSettingName ( ) )
testForEachIf ( ) { com . gs . collections . impl . list . mutable . FastList < java . lang . Integer > collection = com . gs . collections . impl . list . mutable . FastList . newListWith ( 1 , 2 , 3 , 4 ) ; com . gs . collections . impl . block . procedure . CountProcedure < java . lang . Integer > countProcedure = n...
org . junit . Assert . assertEquals ( 3 , countProcedure . getCount ( ) )
getUser_with_users_username ( ) { java . util . List < com . behase . relumin . model . LoginUser > users = com . google . common . collect . Lists . newArrayList ( new com . behase . relumin . model . LoginUser ( "username1" , "displayName1" , "rawPassword" , Role . VIEWER . getAuthority ( ) ) , new com . behase . rel...
org . junit . Assert . assertThat ( service . getUser ( users , "username2" ) . getUsername ( ) , org . hamcrest . core . Is . is ( "username2" ) )
testReverseTemplate ( ) { java . lang . String origin = "【工银信用卡】于${startTime}至${endTime}申办奋斗卡,\n" + "${link}" ; java . lang . String newStr = "【工银信用卡】于昨天至今天申办奋斗卡,\n" + "" ; com . coderising . myknowledgepoint . regex . Map < java . lang . String , java . lang . String > map = extractTemplateMap ( origin , newStr ) ; co...
org . junit . Assert . assertEquals ( map , map2 )
testFallbackUnnecessary ( ) { java . lang . String fakeFile = "fakefile.geolitecitydbtest" ; java . util . Map < java . lang . String , java . lang . Object > globalConfig = java . util . Collections . singletonMap ( GeoLiteCityDatabase . GEO_HDFS_FILE , fakeFile ) ; "<AssertPlaceHolder>" ; } determineHdfsDirWithFallba...
org . junit . Assert . assertEquals ( GeoLiteCityDatabase . INSTANCE . determineHdfsDirWithFallback ( globalConfig , fakeFile , "" ) , fakeFile )
userNotLoggedInTest ( ) { when ( identity . isLoggedIn ( ) ) . thenReturn ( false ) ; "<AssertPlaceHolder>" ; } resolve ( ) { try { java . lang . String level = resolveLevel ( ) ; return levelFactoryResolver . resolve ( ) . createLevel ( level ) ; } catch ( org . picketlink . common . exceptions . PicketLinkException e...
org . junit . Assert . assertTrue ( ( ( resolver . resolve ( ) ) == null ) )
testEquals ( ) { org . jfree . chart . labels . ItemLabelPosition p1 = new org . jfree . chart . labels . ItemLabelPosition ( ) ; org . jfree . chart . labels . ItemLabelPosition p2 = new org . jfree . chart . labels . ItemLabelPosition ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( p1 , p2 )
testToStringEquality ( ) { final nl . minvenj . nfi . storm . kafka . util . KafkaMessageId id1 = new nl . minvenj . nfi . storm . kafka . util . KafkaMessageId ( 1 , 1234 ) ; final nl . minvenj . nfi . storm . kafka . util . KafkaMessageId id2 = new nl . minvenj . nfi . storm . kafka . util . KafkaMessageId ( 1 , 1234...
org . junit . Assert . assertEquals ( id1 . toString ( ) , id2 . toString ( ) )
testNotifyAfterPhase_withNonMatchingListener ( ) { org . eclipse . rap . rwt . testfixture . internal . LoggingPhaseListener phaseListener = new org . eclipse . rap . rwt . testfixture . internal . LoggingPhaseListener ( PhaseId . RENDER ) ; phaseListenerManager . addPhaseListener ( phaseListener ) ; phaseListenerManag...
org . junit . Assert . assertEquals ( 0 , phaseListener . getLoggedEvents ( ) . length )
returnsSimpleClassNameAsEntityNameByDefault ( ) { org . springframework . data . jpa . repository . query . DefaultJpaEntityMetadata < org . springframework . data . jpa . repository . support . DefaultJpaEntityMetadataUnitTest . Foo > metadata = new org . springframework . data . jpa . repository . query . DefaultJpaE...
org . junit . Assert . assertThat ( metadata . getEntityName ( ) , org . hamcrest . CoreMatchers . is ( org . springframework . data . jpa . repository . support . DefaultJpaEntityMetadataUnitTest . Foo . class . getSimpleName ( ) ) )